From 0a18f48ae32534f748188087447bb26bb6568895 Mon Sep 17 00:00:00 2001 From: Excute Date: Fri, 17 Nov 2023 18:37:12 +0900 Subject: [PATCH] fixed docker stop condition syntax --- .github/workflows/cicd-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cicd-release.yml b/.github/workflows/cicd-release.yml index c26ef53..b781d32 100644 --- a/.github/workflows/cicd-release.yml +++ b/.github/workflows/cicd-release.yml @@ -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