Skip to content

Commit

Permalink
fixed docker stop condition syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
excute committed Nov 17, 2023
1 parent 4bd9991 commit 0a18f48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/cicd-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
user: ${{ secrets.GCP_SSH_USER }}
command: |
docker pull ${{ env.IMAGE_NAME }}:${{ github.ref_name }}
if $(docker ps -aq); then
if [ $(docker ps -aq) != "" ]; then
docker stop $(docker ps -aq); fi
docker run -d --rm ${{ env.IMAGE_NAME }}:${{ github.ref_name }}
docker image prune -af
Expand Down

0 comments on commit 0a18f48

Please sign in to comment.