fix: deploy

This commit is contained in:
Yanislav Igonin 2021-08-29 10:07:12 +03:00
parent bae88241d4
commit adf03d80ce

View File

@ -61,6 +61,7 @@ jobs:
key: ${{ secrets.VPS_SSH_PRIVATE_KEY }} key: ${{ secrets.VPS_SSH_PRIVATE_KEY }}
script: | script: |
docker login -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }} ${{ env.REGISTRY }} docker login -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }} ${{ env.REGISTRY }}
docker pull ${{ env.REGISTRY }}:${{ github.event.release.tag_name }} # docker pull ${{ env.REGISTRY }}:${{ github.event.release.tag_name }}
docker pull ${{ env.REGISTRY }}:latest docker pull ${{ env.REGISTRY }}:latest
docker service update --image ${{ env.REGISTRY }}:${{ github.event.release.tag_name }} ${{ env.SERVICE_NAME }} # docker service update --image ${{ env.REGISTRY }}:${{ github.event.release.tag_name }} ${{ env.SERVICE_NAME }}
docker service update --image ${{ env.REGISTRY }}:latest ${{ env.SERVICE_NAME }}