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

bash magic

parent e688453c
No related branches found
No related tags found
No related merge requests found
Pipeline #25116 failed
...@@ -31,10 +31,8 @@ stages: ...@@ -31,10 +31,8 @@ stages:
- cd mellon/${CI_COMMIT_REF_NAME} - cd mellon/${CI_COMMIT_REF_NAME}
- kubectl get -n cbio-on-demand${NAMESPACE} configmaps cert || kubectl -n cbio-on-demand${NAMESPACE} create configmap cert --from-file=http_cbiood_${CI_COMMIT_REF_NAME}.edirex.ics.muni.cz.cert - kubectl get -n cbio-on-demand${NAMESPACE} configmaps cert || kubectl -n cbio-on-demand${NAMESPACE} create configmap cert --from-file=http_cbiood_${CI_COMMIT_REF_NAME}.edirex.ics.muni.cz.cert
- kubectl get -n cbio-on-demand${NAMESPACE} configmaps xml || kubectl -n cbio-on-demand${NAMESPACE} create configmap xml --from-file=http_cbiood_${CI_COMMIT_REF_NAME}.edirex.ics.muni.cz.xml - kubectl get -n cbio-on-demand${NAMESPACE} configmaps xml || kubectl -n cbio-on-demand${NAMESPACE} create configmap xml --from-file=http_cbiood_${CI_COMMIT_REF_NAME}.edirex.ics.muni.cz.xml
- export foo="${CI_COMMIT_REF_NAME}_KEY" - export foo="${CI_COMMIT_REF_NAME^^}_KEY"
- echo $foo
- foo=$(eval echo \$"$foo") - foo=$(eval echo \$"$foo")
- echo $foo
- echo ${foo} >> key.key - echo ${foo} >> key.key
- kubectl get -n cbio-on-demand${NAMESPACE} secrets key || kubectl -n cbio-on-demand${NAMESPACE} create secret generic key --from-file=key.key - kubectl get -n cbio-on-demand${NAMESPACE} secrets key || kubectl -n cbio-on-demand${NAMESPACE} create secret generic key --from-file=key.key
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment