From 63a6c784fabc8c50d6f5e1bbeb4bc7ede3f006c5 Mon Sep 17 00:00:00 2001 From: Chris Tabone Date: Fri, 21 Jun 2024 10:43:43 -0300 Subject: [PATCH] Update test_ansible.yml --- .github/workflows/test_ansible.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test_ansible.yml b/.github/workflows/test_ansible.yml index 9a5a5eef..24423610 100644 --- a/.github/workflows/test_ansible.yml +++ b/.github/workflows/test_ansible.yml @@ -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