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 11edb6b commit 9c7a90f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ jobs:
key: ${{ secrets.EC2_SSH_PRIVATE_KEY }}
envs: REGISTRY,REPOSITORY,IMAGE_TAG,AWS_REGION,IMAGE_NAME
script: |-
sudo $(aws ecr get-login-password --no-include-email --region ${{ env.AWS_REGION }}) |
sudo docker login --username AWS --password-stdin ${{ env.REGISTRY }}
aws ecr get-login-password --region ${{ env.AWS_REGION }} |
sudo docker login --username AWS --password-stdin ${{ env.REGISTRY }}/${{ env.REPOSITORY }}
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 9c7a90f

Please sign in to comment.