Commit e0e5b0d7 authored by Ľuboslav Pivarč's avatar Ľuboslav Pivarč
Browse files

create or replace secret

parent 58f3a375
Pipeline #25373 failed with stages
in 11 seconds
...@@ -33,8 +33,7 @@ stages: ...@@ -33,8 +33,7 @@ stages:
- kubectl get -n cbio-on-demand${NAMESPACE} configmaps xml || kubectl -n cbio-on-demand${NAMESPACE} create configmap xml --from-file=sp-metadata.xml - kubectl get -n cbio-on-demand${NAMESPACE} configmaps xml || kubectl -n cbio-on-demand${NAMESPACE} create configmap xml --from-file=sp-metadata.xml
- export foo="${CI_COMMIT_REF_NAME}_KEY" - export foo="${CI_COMMIT_REF_NAME}_KEY"
- foo=$(eval echo \$"$foo") - foo=$(eval echo \$"$foo")
- echo "$foo" >> sp_key.pem - kubectl -n cbio-on-demand${NAMESPACE} create secret generic key --from-file="$"foo" --dry-run -o yaml | kubectl apply -f -
- kubectl get -n cbio-on-demand${NAMESPACE} secrets key || kubectl -n cbio-on-demand${NAMESPACE} create secret generic key --from-file=sp_key.pem
.cbio-db-build-template: &cbio-db-build-template .cbio-db-build-template: &cbio-db-build-template
stage: build stage: build
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment