Commit 33b14e73 authored by Elouan Martinet's avatar Elouan Martinet

ci: use kaniko to build and push image

parent 4697bf5ace2
Pipeline #10076 passed with stages
in 5 minutes and 58 seconds
......@@ -30,11 +30,15 @@ build-push:
stage: build-push
only:
- branch/default
tags:
- shell
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
script:
- make build
- make push
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- /kaniko/executor --context $CI_PROJECT_DIR
--dockerfile $CI_PROJECT_DIR/Dockerfile
--destination $CI_REGISTRY_IMAGE:$CI_TAG
--destination $CI_REGISTRY_IMAGE:latest
deployement:
environment:
......
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