hub/cloudbuild.yaml (8 lines of code) (raw):

steps: - name: 'gcr.io/cloud-builders/docker' args: ['build', '-t', 'gcr.io/$PROJECT_ID/hub', '.'] - name: 'gcr.io/$PROJECT_ID/hub' args: ['alias', 'bash'] # These steps require authorization. To configure authorization, create a # GitHub personal access token[0] and follow instructions at [1] to encrypt it. # [0] https://github.com/settings/tokens # [1] https://cloud.google.com/cloud-build/docs/securing-builds/use-encrypted-secrets-credentials#encrypting_an_environment_variable_using_the_cryptokey #- name: 'gcr.io/$PROJECT_ID/hub' # args: ['clone', 'github/hub'] # secretEnv: ['GITHUB_TOKEN'] #- name: 'gcr.io/$PROJECT_ID/hub' # args: ['ci-status'] # dir: 'hub' # secretEnv: ['GITHUB_TOKEN'] images: - 'gcr.io/$PROJECT_ID/hub' #secrets: #- kmsKeyName: 'TODO: KMS key name' # secretEnv: # GITHUB_TOKEN: 'TODO: base64-encoded personal access token' tags: ['cloud-builders-community']