gimlet-io / onechart

A generic Helm chart for your application deployments
https://gimlet.io/docs/reference/onechart-reference
Apache License 2.0
283 stars 48 forks source link

Cloning private repos #121

Closed laszlocph closed 8 months ago

laszlocph commented 8 months ago
export PAT=github_pat_xxxx
export GITHUB_URL_WITH_PAT=https://$PAT@github.com/laszlocph/reactjs-test-app-private.git

kubectl create secret generic git-creds --from-literal=gitCloneUrl=$GITHUB_URL_WITH_PAT
#values.yaml
- gitCloneUrl: https://github.com/laszlocph/reactjs-test-app.git
+ gitCloneUrlSecretName: git-creds
buildImage: "node:20.10-buster"
buildScript: npm install && npm run build
builtAssets: build/
helm template my-react-site onechart/static-site -f values.yaml | kubectl apply -f -