-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
90eb1bc
commit 2db1195
Showing
5 changed files
with
72 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
substitutions: | ||
_IMAGE: 'article-company-crawler/latest' | ||
_JOB_NAME: 'article-company-crawler' | ||
_REGION: 'asia-northeast1' | ||
steps: | ||
# Build the container image | ||
- name: 'gcr.io/cloud-builders/docker' | ||
args: ['build', '-t', '$_REGION-docker.pkg.dev/$PROJECT_ID/$_IMAGE','-f', 'batch-service/Dockerfile.article-company-crawler', '.'] | ||
# Push the container image to Container Registry | ||
- name: 'gcr.io/cloud-builders/docker' | ||
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 | ||
args: | ||
- 'run' | ||
- 'jobs' | ||
- 'deploy' | ||
- '$_JOB_NAME' | ||
- '--image' | ||
- '$_REGION-docker.pkg.dev/$PROJECT_ID/$_IMAGE' | ||
- '--region' | ||
- '$_REGION' | ||
- '--execute-now' | ||
images: | ||
- $_REGION-docker.pkg.dev/$PROJECT_ID/$_IMAGE |
26 changes: 26 additions & 0 deletions
26
batch-service/cloudbuild-article-site-and-summary-crawler.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
substitutions: | ||
_IMAGE: 'article-site-and-summary-crawler/latest' | ||
_JOB_NAME: 'article-site-and-summary-crawler' | ||
_REGION: 'asia-northeast1' | ||
steps: | ||
# Build the container image | ||
- name: 'gcr.io/cloud-builders/docker' | ||
args: ['build', '-t', '$_REGION-docker.pkg.dev/$PROJECT_ID/$_IMAGE','-f', 'batch-service/Dockerfile.article-site-and-summary-crawler', '.'] | ||
# Push the container image to Container Registry | ||
- name: 'gcr.io/cloud-builders/docker' | ||
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 | ||
args: | ||
- 'run' | ||
- 'jobs' | ||
- 'deploy' | ||
- '$_JOB_NAME' | ||
- '--image' | ||
- '$_REGION-docker.pkg.dev/$PROJECT_ID/$_IMAGE' | ||
- '--region' | ||
- '$_REGION' | ||
- '--execute-now' | ||
images: | ||
- $_REGION-docker.pkg.dev/$PROJECT_ID/$_IMAGE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters