From 8b9e3b14f813305bdf9b2e99932fe42c840ec3f5 Mon Sep 17 00:00:00 2001 From: Michael Szotkowski Date: Mon, 11 Sep 2023 19:57:15 +0200 Subject: [PATCH] Update continuous-deployment.yml --- .github/workflows/continuous-deployment.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/continuous-deployment.yml b/.github/workflows/continuous-deployment.yml index 8f639ac..7030d6a 100644 --- a/.github/workflows/continuous-deployment.yml +++ b/.github/workflows/continuous-deployment.yml @@ -74,7 +74,7 @@ jobs: port: ${{ secrets.SSH_PORT }} script: | docker login || true && \ - docker pull selecro/${{ env.IMAGE }}:${{ env.SHORT_SHA }} && \ + docker pull selecro/${{ env.IMAGE }}:${{ github.ref_name }}-${{ env.SHORT_SHA }} && \ docker ps -a | grep ${{ env.IMAGE }} && docker stop ${{ env.IMAGE }} || true && \ docker ps -a | grep ${{ env.IMAGE }} && docker rm ${{ env.IMAGE }} || true && \ docker run \ @@ -98,7 +98,7 @@ jobs: -e INSTRUCTION_KEY="${{ secrets.INSTRUCTION_KEY }}" \ -e INSTRUCTION_KEY_PERMISSIONS="${{ secrets.INSTRUCTION_KEY_PERMISSIONS }}" \ --name ${{ env.IMAGE }} -dp ${{ env.PORT }}:${{ env.PORT }} \ - selecro/${{ env.IMAGE }}:${{ env.SHORT_SHA }} && \ + selecro/${{ env.IMAGE }}:${{ github.ref_name }}-${{ env.SHORT_SHA }} && \ docker update --restart unless-stopped ${{ env.IMAGE }} && exit - name: Cleanup