Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
YukiOnishi1129 committed May 7, 2024
1 parent 53cf7aa commit 90eb1bc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions batch-service/cloudbuild-trend-article-crawler.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
substitutions:
_IMAGE: 'asia-northeast1-docker.pkg.dev/geek-picks-staging/trend-article-crawler/latest'
_IMAGE: 'trend-article-crawler/latest'
_JOB_NAME: 'trend-article-crawler'
_REGION: 'asia-northeast1'
steps:
# Build the container image
- name: 'gcr.io/cloud-builders/docker'
args: ['build', '-t', 'asia-northeast1-docker.pkg.dev/geek-picks-staging/trend-article-crawler/latest','-f', 'batch-service/Dockerfile.trend-article-crawler', '.']
args: ['build', '-t', '$_REGION-docker.pkg.dev/$PROJECT_ID/$_IMAGE','-f', 'batch-service/Dockerfile.trend-article-crawler', '.']
# Push the container image to Container Registry
- name: 'gcr.io/cloud-builders/docker'
args: ['push', '$_IMAGE']
args: ['push', '$_REGION-docker.pkg.dev/$PROJECT_ID/$_IMAGE']
# Deploy container image to Cloud Run
- name: 'gcr.io/google.com/cloudsdktool/cloud-sdk'
entrypoint: gcloud
Expand All @@ -18,9 +18,9 @@ steps:
- 'deploy'
- '$_JOB_NAME'
- '--image'
- '$_IMAGE'
- '$_REGION-docker.pkg.dev/$PROJECT_ID/$_IMAGE'
- '--region'
- '$_REGION'
- '--execute-now'
images:
- $_IMAGE
- $_REGION-docker.pkg.dev/$PROJECT_ID/$_IMAGE

0 comments on commit 90eb1bc

Please sign in to comment.