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 10, 2024
1 parent 8c66720 commit 934b8ad
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,12 @@ jobs:
key: ${{ secrets.EC2_SSH_PRIVATE_KEY }}
envs: REGISTRY,REPOSITORY,IMAGE_TAG,AWS_REGION,IMAGE_NAME
scripts: |-
sudo $(aws ecr get-login-password --region ${{ env.AWS_REGION }})
echo "1"
sudo $(aws ecr get-login-password --region ${{ env.AWS_REGION }});
echo "2"
sudo docker stop ${{ env.IMAGE_NAME }} || true
echo "3"
sudo docker rm ${{ env.IMAGE_NAME }} || true
echo "4"
sudo docker pull $REGISTRY/$REPOSITORY:$IMAGE_TAG
sudo docker container run --name ${{ env.IMAGE_NAME }} -d -p 3000:3000 $REGISTRY/$REPOSITORY:$IMAGE_TAG

0 comments on commit 934b8ad

Please sign in to comment.