diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3ed1990..e5c1f33 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -39,7 +39,8 @@ jobs: username: ${{ secrets.VPS_USER }} key: ${{ secrets.VPS_SSH_KEY }} script: | + IMAGE=ghcr.io/${{ github.repository }}:${{ github.sha }} echo ${{ secrets.GHCR_TOKEN }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin cd ~/deployed_apps/future-self-backend - docker compose pull future-self-backend - docker compose up -d --no-deps future-self-backend \ No newline at end of file + docker compose pull $IMAGE + IMAGE=$IMAGE docker compose up -d --no-deps --force-recreate \ No newline at end of file