Skip to content

Instantly share code, notes, and snippets.

@aramalipoor
Last active June 24, 2018 15:18
Show Gist options
  • Save aramalipoor/181de01229e462b086b558f6ba3e115b to your computer and use it in GitHub Desktop.
Save aramalipoor/181de01229e462b086b558f6ba3e115b to your computer and use it in GitHub Desktop.
How to use Input Secrets to clone multiple repositories in OpenShift's BuildConfig?
# You can edit a BuildConfig's YAML either via UI
# or by running `oc edit bc/MY_APP`
spec:
# ...
source:
# ...
secrets:
# This path must be relative when BuildConfig's "strategy" is Docker
- destinationDir: secrets/github-myorg
secret:
name: github-myorg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment