-
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.
Merge pull request #68 from YukiOnishi1129/feature/67-cloud-build
Feature/67 cloud build
- Loading branch information
Showing
13 changed files
with
26 additions
and
1,996 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
substitutions: | ||
_IMAGE: 'asia-northeast1-docker.pkg.dev/geek-picks-staging/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', 'gcr.io/$PROJECT_ID/$_IMAGE',' -f ', 'Dockerfile.trend-article-crawler', '.'] | ||
# Push the container image to Container Registry | ||
- name: 'gcr.io/cloud-builders/docker' | ||
args: ['push', 'gcr.io/$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' | ||
- 'gcr.io/$PROJECT_ID/$_IMAGE' | ||
- '--region' | ||
- '$_REGION' | ||
- '--execute-now' | ||
images: | ||
- gcr.io/$PROJECT_ID/$_IMAGE |
Oops, something went wrong.