diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c708a1c93fbe1611dbadce5fb1323a6396985b91..06bb4db533f557bb42143bdc81e0a5333a59cd21 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -8,6 +8,7 @@ image: Build alpine image: stage: build script: + - mkdir /kaniko/.docker - 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.alpine --destination $CI_REGISTRY_IMAGE:alpine --destination $CI_REGISTRY_IMAGE:latest only: @@ -16,6 +17,7 @@ Build alpine image: Build ubuntu image: stage: build script: + - mkdir /kaniko/.docker - 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.ubuntu --destination $CI_REGISTRY_IMAGE:ubuntu only: