Skip to content

Commit

Permalink
Add docker pull
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaellevissa committed May 4, 2024
1 parent e095ae4 commit 116040f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,5 @@ jobs:
key: ${{ secrets.EC2_SSH_PRIVATE_KEY }}
script: |
docker login -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }} ${{ env.REGISTRY }} &&
docker pull ${{ env.REGISTRY }}/${{ env.APP_IMAGE_NAME }}:latest &&
docker run -d --name ${{ env.APP_NAME }} -p 80:80 ${{ env.REGISTRY }}/${{ env.APP_IMAGE_NAME }}:latest

0 comments on commit 116040f

Please sign in to comment.