Skip to content

Commit

Permalink
test docker pull
Browse files Browse the repository at this point in the history
  • Loading branch information
iyoubee committed Jun 7, 2024
1 parent 75ba10a commit e35a484
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit e35a484

Please sign in to comment.