Skip to content
Snippets Groups Projects
Commit 780e5134 authored by Sören Henning's avatar Sören Henning
Browse files

Add kaniko build

parent 0ff4ca96
No related branches found
No related tags found
1 merge request!207Container build without Docker
Pipeline #5464 canceled
......@@ -310,6 +310,31 @@ deploy-theodolite:
when: manual
allow_failure: true
deploy-theodolite-kaniko:
stage: deploy
extends:
- .theodolite
needs:
- build-theodolite-jvm
- test-theodolite
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
script:
- DOCKER_TAG_NAME=$(echo $CI_COMMIT_REF_SLUG- | sed 's/^master-$//')
- mkdir -p /kaniko/.docker
- echo "{\"auths\":{\"$CR_HOST\":{\"username\":\"$CR_USER\",\"password\":\"$CR_PW\"}}}" > /kaniko/.docker/config.json
- /kaniko/executor --context $PWD/src/main/docker/ --dockerfile Dockerfile.jvm -d $CR_ORG/theodolite:${DOCKER_TAG_NAME}latest-kaniko
rules:
- if: "$CR_HOST && $CR_ORG && $CR_USER && $CR_PW && $CI_COMMIT_TAG"
when: always
- changes:
- theodolite/**/*
if: "$CR_HOST && $CR_ORG && $CR_USER && $CR_PW"
when: always
- if: "$CR_HOST && $CR_ORG && $CR_USER && $CR_PW"
when: manual
allow_failure: true
# Theodolite SLO Checker: Lag Trend
......
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