Skip to content
Snippets Groups Projects
Commit e0e5b0d7 authored by Ľuboslav Pivarč's avatar Ľuboslav Pivarč
Browse files

create or replace secret

parent 58f3a375
No related branches found
No related tags found
No related merge requests found
Pipeline #25373 failed
...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment