Skip to content
Snippets Groups Projects

Changing builder image in ci pipeline

Merged Lorenzo Del Pianta requested to merge gitlab-ci_update into v10.3-0
1 file
+ 2
4
Compare changes
  • Side-by-side
  • Inline
+ 2
4
@@ -16,11 +16,9 @@ stages:
# Prepare Kaniko configuration file
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
# Build and push the image from the Dockerfile at the root of the project.
- /kaniko/executor --context "$CI_PROJECT_DIR/$CONTEXT_DIR" --dockerfile "$CI_PROJECT_DIR/$CONTEXT_DIR/$DOCKERFILE"
--destination "${CI_REGISTRY_IMAGE}/${IMAGE_NAME}:${TAG}" $BUILD_ARGS
- /kaniko/executor --context "$CI_PROJECT_DIR/$CONTEXT_DIR" --dockerfile "$CI_PROJECT_DIR/$CONTEXT_DIR/$DOCKERFILE" --destination "${IMAGE_DESTINATION}" $BUILD_ARGS
# Print the full registry path of the pushed image
- echo "Image pushed to ${CI_REGISTRY_IMAGE}/${IMAGE_NAME}:${TAG}"
- echo "${IMAGE_DESTINATION}"
- echo "Image pushed to ${IMAGE_DESTINATION}"
environment:
stage: environment
Loading