Skip to content

Commit

Permalink
Update test_ansible.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
christabone authored Jun 21, 2024
1 parent c02dc9a commit 63a6c78
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/test_ansible.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,19 @@ jobs:
echo "${{ secrets.ANSIBLE_VAULT_PASSWORD }}" > ~/.ssh/.password
chmod 600 ~/.ssh/.password
- name: Clone agr_ansible_devops repository
run: git clone https://github.com/alliance-genome/agr_ansible_devops
- name: Configure AWS credentials
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
run: |
mkdir -p ~/.aws
echo "[default]" > ~/.aws/credentials
echo "aws_access_key_id=${{ secrets.AWS_ACCESS_KEY_ID }}" >> ~/.aws/credentials
echo "aws_secret_access_key=${{ secrets.AWS_SECRET_ACCESS_KEY }}" >> ~/.aws/credentials
- name: Run make registry-docker-login
- name: Log in to ECR
run: |
cd agr_ansible_devops
make registry-docker-login
aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 100225593120.dkr.ecr.us-east-1.amazonaws.com
- name: Pull Ansible Docker Image
run: docker pull 100225593120.dkr.ecr.us-east-1.amazonaws.com/agr_ansible_run:stage
Expand Down

0 comments on commit 63a6c78

Please sign in to comment.