forked from GoogleCloudPlatform/cloud-builders-community
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bump kustomize version and add as a docker arg
stop wget printing progress logs add version, directory, and tag substitutions to cloudbuild.yaml add sample trigger for kustomize update kustomize readme with samples for substitutions Signed-off-by: afirth <[email protected]>
- Loading branch information
Showing
4 changed files
with
53 additions
and
7 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 |
---|---|---|
@@ -1,10 +1,29 @@ | ||
steps: | ||
- name: "gcr.io/cloud-builders/docker" | ||
args: ["build", "--tag=gcr.io/$PROJECT_ID/kustomize", "."] | ||
dir: ${_BUILD_DIRECTORY} | ||
args: | ||
- build | ||
- --build-arg | ||
- VER=${_KUSTOMIZE_VERSION} | ||
- --tag=gcr.io/$PROJECT_ID/kustomize:${_LATEST_TAG} | ||
- --tag=gcr.io/$PROJECT_ID/kustomize:${_KUSTOMIZE_VERSION} | ||
- . | ||
|
||
- # Verify kustomize has been built correctly | ||
name: "gcr.io/$PROJECT_ID/kustomize" | ||
entrypoint: "kustomize" | ||
args: ["version"] | ||
args: | ||
- version | ||
|
||
images: | ||
- gcr.io/$PROJECT_ID/kustomize:${_LATEST_TAG} | ||
- gcr.io/$PROJECT_ID/kustomize:${_KUSTOMIZE_VERSION} | ||
|
||
substitutions: | ||
_BUILD_DIRECTORY: "./" #set to kustomize to run in a trigger | ||
_KUSTOMIZE_VERSION: v3.8.1 | ||
_LATEST_TAG: latest | ||
|
||
images: ["gcr.io/$PROJECT_ID/kustomize"] | ||
tags: ["cloud-builders-community"] | ||
tags: | ||
- cloud-builders-community | ||
- kustomize |
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,13 @@ | ||
# gcloud beta builds import --source=<filename> | ||
description: 'Kustomize Image Build: Push to ^master$ branch' | ||
filename: kustomize/cloudbuild.yaml | ||
includedFiles: | ||
- kustomize/* | ||
name: kustomize-image-build | ||
github: | ||
name: cloud-builders-community | ||
owner: <GITHUB_ORG> #TODO | ||
push: | ||
branch: ^master$ | ||
substitutions: | ||
_BUILD_DIRECTORY: kustomize |