Skip to content

Commit

Permalink
feat: test
Browse files Browse the repository at this point in the history
  • Loading branch information
miro-ring committed Jan 11, 2024
1 parent e160bf2 commit 0ce2c3f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ jobs:
key: ${{ secrets.EC2_SSH_PRIVATE_KEY }}
envs: REGISTRY,REPOSITORY,IMAGE_TAG,AWS_REGION,IMAGE_NAME
script: |-
sudo $(aws ecr get-login --no-include-email --region ${{ env.AWS_REGION }});
sudo $(aws ecr get-login-password --no-include-email --region ${{ env.AWS_REGION }});
echo "${{ env.REGISTRY }}"
sudo docker login --username AWS --password-stdin ${{ env.REGISTRY }}
sudo docker stop ${{ env.IMAGE_NAME }} || true
sudo docker rm ${{ env.IMAGE_NAME }} || true
sudo docker rmi $(sudo docker images -aq) || true
Expand Down

0 comments on commit 0ce2c3f

Please sign in to comment.