Last active
April 4, 2021 04:37
-
-
Save omegaes/467f9c55266d755e5e64ce849a2d2ffa to your computer and use it in GitHub Desktop.
Demo-app-cloudbuild.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
#Demo-app-cloudbuild.yaml | |
steps: | |
- name: 'gcr.io/cloud-builders/docker' | |
args: ['build', '-t', 'asia.gcr.io/PROJECT_ID/gke-demo-app:$SHORT_SHA', '.' ] | |
- name: 'gcr.io/cloud-builders/docker' | |
args: ['push', 'asia.gcr.io/PROJECT_ID/gke-demo-app:$SHORT_SHA'] | |
- name: 'omegaes/kubci' | |
args: ['$SHORT_SHA'] | |
secretEnv: ['ENV_REPO_URL'] | |
env: | |
- 'ENV_REPO_FILES=$_ENV_REPO_FILES' | |
- 'ENV_REPO_MERGE_BRANCH=$_ENV_REPO_MERGE_BRANCH' | |
- 'ENV_REPO_TARGET_BRANCH=$_ENV_REPO_TARGET_BRANCH' | |
- 'GIT_USER_EMAIL="abdul@babil.dev"' | |
- 'GIT_USER_NAME="Abdul CI/CD"' | |
- 'REPO_NAME=$REPO_NAME' | |
- 'BRANCH_NAME=$BRANCH_NAME' | |
availableSecrets: | |
secretManager: | |
- versionName: projects/PROJECT_NUMBER/secrets/ENV_REPO_AUTH_URL/versions/1 | |
env: 'ENV_REPO_URL' | |
options: | |
machineType: 'N1_HIGHCPU_8' | |
timeout: 720s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment