mirror of
https://github.com/gsi-upm/senpy
synced 2024-11-22 00:02:28 +00:00
k8s deploy from raw KUBECONFIG
This commit is contained in:
parent
8489457370
commit
7ca5057705
@ -101,12 +101,12 @@ latest-demo:
|
||||
stage: deploy
|
||||
environment: production
|
||||
variables:
|
||||
KUBECONFIG_FILE: "/kubeconfig"
|
||||
KUBECONFIG: "/kubeconfig"
|
||||
IMAGEWTAG: "${CI_REGISTRY_IMAGE}:${CI_COMMIT_SHORT_SHA}"
|
||||
KUBEAPP: "senpy"
|
||||
script:
|
||||
- cat ${KUBECONFIG} > $KUBECONFIG_FILE
|
||||
- echo "${KUBECONFIG_RAW}" > $KUBECONFIG
|
||||
- kubectl version
|
||||
- cd k8s/
|
||||
- cat *.yaml *.tmpl 2>/dev/null | envsubst | kubectl --kubeconfig $KUBECONFIG_FILE apply --namespace ${KUBENS:-default} -f -
|
||||
- kubectl --kubeconfig $KUBECONFIG_FILE get all,ing -l app=${KUBEAPP} --namespace=${KUBENS:-default}
|
||||
- cat *.yaml *.tmpl 2>/dev/null | envsubst | kubectl --kubeconfig $KUBECONFIG apply --namespace ${KUBENS:-default} -f -
|
||||
- kubectl --kubeconfig $KUBECONFIG get all,ing -l app=${KUBEAPP} --namespace=${KUBENS:-default}
|
||||
|
Loading…
Reference in New Issue
Block a user