Skip to content

Commit

Permalink
done
Browse files Browse the repository at this point in the history
  • Loading branch information
iyoubee committed Jun 7, 2024
1 parent 80c7fde commit 37ba73b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ jobs:
run: |
gcloud --quiet auth configure-docker $GCP_REGION-docker.pkg.dev
# - name: Run file download script
# run: python download.py
- name: Run file download script
run: python download.py

# - name: Build and push Docker image
# run: |
# docker build -t $GCP_REGION-docker.pkg.dev/$GCP_PROJECT_ID/ulascan/$APP_NAME:latest .
# docker push $GCP_REGION-docker.pkg.dev/$GCP_PROJECT_ID/ulascan/$APP_NAME:latest
- name: Build and push Docker image
run: |
docker build -t $GCP_REGION-docker.pkg.dev/$GCP_PROJECT_ID/ulascan/$APP_NAME:latest .
docker push $GCP_REGION-docker.pkg.dev/$GCP_PROJECT_ID/ulascan/$APP_NAME:latest
deploy:
needs: build
Expand All @@ -77,7 +77,7 @@ jobs:
-i ssh_key \
ulascan@$GCE_INSTANCE_IP \
"gcloud --quiet auth configure-docker $GCP_REGION-docker.pkg.dev \
&& docker pull asia-southeast2-docker.pkg.dev/bangkit-425201/ulascan/ulascan-ml:latest \
&& 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 \
Expand Down

0 comments on commit 37ba73b

Please sign in to comment.