Skip to content
Snippets Groups Projects
Commit b7348136 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

ci create secret

parent 73e65522
No related branches found
No related tags found
No related merge requests found
Pipeline #7219 failed
......@@ -20,3 +20,16 @@ build:
- docker push ${CI_REGISTRY_IMAGE}/${DOCKER_IMAGE_NAME}:${DOCKER_TAG_NAME}
after_script:
- docker logout $CI_REGISTRY
update_secret:
stage: build
image: ${KUBERNETES_DEPLOY_IMAGE}
before_script:
- kubectl config use-context open-source/metager-keymanager:gitlab-agent
script: |
kubectl -n ${KUBERNETES_NAMESPACE} create secret generic ${HELM_RELEASE_NAME} \
--from-file=production.json=${PRODUCTION_CONFIG} \
--dry-run=client \
--save-config \
-o yaml | \
kubectl apply -f -
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment