Skip to content

Commit

Permalink
ci: change APP_NAME env
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaellevissa committed Jun 13, 2024
1 parent 0ed62cb commit 65f00c8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ jobs:
username: ${{ secrets.EC2_USERNAME }}
key: ${{ secrets.EC2_SSH_PRIVATE_KEY }}
script: |-
docker container stop $APP_NAME || true
docker container rm $APP_NAME || true
docker container stop ${{ env.APP_NAME}} || true
docker container rm ${{ env.APP_NAME}} || true
docker login ${{ env.REGISTRY }} -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }}
docker pull ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
docker run -d --restart=unless-stopped --name $APP_NAME ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
docker run -d --restart=unless-stopped --name ${{ env.APP_NAME}} ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest

0 comments on commit 65f00c8

Please sign in to comment.