Skip to content

Commit

Permalink
Update continuous-deployment.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Szotkowski authored Sep 11, 2023
1 parent fd28611 commit 8b9e3b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/continuous-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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
Expand Down

0 comments on commit 8b9e3b1

Please sign in to comment.