Skip to content
Snippets Groups Projects
Verified Commit 9bcf5ceb authored by Virgile Gerecke's avatar Virgile Gerecke :metal:
Browse files

Switch to kaniko

parent b13e7e16
Branches
Tags
No related merge requests found
Pipeline #78112 failed with stages
in 1 minute and 30 seconds
......@@ -9,14 +9,28 @@ variables:
#before_script:
# - echo $CI_DEPLOY_PASSWORD | docker login -u $CI_DEPLOY_USER --password-stdin $CI_REGISTRY
#b:docker:
# image: docker:20.10
# stage: build
# services:
# - docker:20.10-dind
# script:
# - docker build --pull -t $CONTAINER_TEST_IMAGE -f Dockerfile .
# - docker push $CONTAINER_TEST_IMAGE
b:docker:
image: docker:20.10
stage: build
services:
- docker:20.10-dind
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
script:
- docker build --pull -t $CONTAINER_TEST_IMAGE -f Dockerfile .
- docker push $CONTAINER_TEST_IMAGE
- mkdir -p /kaniko/.docker
- echo "{\"auths\":{\"${CI_REGISTRY}\":{\"auth\":\"$(printf "%s:%s" "${CI_REGISTRY_USER}" "${CI_REGISTRY_PASSWORD}" | base64 | tr -d '\n')\"}}}" > /kaniko/.docker/config.json
- >-
/kaniko/executor
--context "${CI_PROJECT_DIR}"
--dockerfile "${CI_PROJECT_DIR}/Dockerfile"
--destination "${CONTAINER_TEST_IMAGE}"
r:docker:
stage: release
......
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