Skip to content

Commit

Permalink
fixing pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
mmolenda committed Jul 21, 2023
1 parent c917a33 commit 720bf56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
with:
command: |
docker pull ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }}
docker stop $(docker ps | grep ${{ env.IMAGE_NAME }} | cut -d' ' -f1) || true
contid=$(docker ps | grep ${{ env.IMAGE_NAME }} | cut -d' ' -f1); if [ ! -z $contid ]; then docker stop $contid; fi
docker run -d -e GTAG_ID=${{ secrets.GTAG_ID }} -p ${{ vars.DOCKER_EXPOSED_PORT }}:8000 ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }}
host: ${{ vars.DEPLOY_HOST }}
port: ${{ vars.DEPLOY_PORT }}
Expand Down

0 comments on commit 720bf56

Please sign in to comment.