Commit 601c58e1 authored by Nane Kratzke's avatar Nane Kratzke
Browse files

use faster kaniko to build images

parent 29b1e341
Pipeline #25878 passed with stages
in 40 seconds
......@@ -39,19 +39,20 @@ claim-volume:
build-prime:
stage: build
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
except:
variables:
- $TERMINATE == "yes"
only:
variables:
- $PRIME == "yes"
services:
- docker:dind
script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- mkdir -p /kaniko/.docker
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- cd prime
- docker build -t $CI_REGISTRY_IMAGE/prime:latest .
- docker push $CI_REGISTRY_IMAGE/prime:latest
- /kaniko/executor --context . --destination $CI_REGISTRY_IMAGE/prime:latest
deploy-prime:
stage: deploy
......
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