From e35a484bcccc51ffb88136051d23eb6615728f83 Mon Sep 17 00:00:00 2001 From: iyoubee Date: Fri, 7 Jun 2024 08:21:27 +0700 Subject: [PATCH] test docker pull --- .github/workflows/deploy.yml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 61dbf98..7815b36 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -77,14 +77,7 @@ jobs: -i ssh_key \ ulascan@$GCE_INSTANCE_IP \ "gcloud --quiet auth configure-docker $GCP_REGION-docker.pkg.dev \ - && docker pull $GCP_REGION-docker.pkg.dev/$GCP_PROJECT_ID/ulascan/$APP_NAME:latest \ - && docker stop $APP_NAME || true \ - && docker rm --force $APP_NAME || true \ - && docker run -d \ - --name $APP_NAME \ - -p 5000:5000 \ - $GCP_REGION-docker.pkg.dev/$GCP_PROJECT_ID/ulascan/$APP_NAME:latest \ - && docker image prune -f" + && docker pull $GCP_REGION-docker.pkg.dev/$GCP_PROJECT_ID/ulascan/$APP_NAME:latest" - name: Cleanup SSH key run: rm ssh_key