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 6, 2024
1 parent 38bae9a commit e1ef2af
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,10 @@ jobs:
aws ecr get-login-password --region ap-northeast-2 |
sudo docker login --username AWS --password-stdin ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} &&
echo "chk" &&
MY_VAR="After login" &&
echo $MY_VAR &&
if [ \$(sudo docker ps -q -f name=${{ env.IMAGE_NAME }}) ]; then
echo "miro2" &&
sudo docker stop ${{ env.IMAGE_NAME }} &&
sudo docker rm ${{ env.IMAGE_NAME }} &&
ID=$(sudo docker inspect -f '{{.Image}}' $(sudo docker ps -q -f name=${{ env.IMAGE_NAME }})) &&
echo "ID=$ID" >> $GITHUB_ENV &&
sudo docker rmi ${{ env.ID }}
fi &&
sudo docker image pull ${{ steps.meta.outputs.tags }} &&
sudo docker container run --name ${{ env.IMAGE_NAME }} -d -p 3000:3000 ${{ steps.meta.outputs.tags }}"

0 comments on commit e1ef2af

Please sign in to comment.