Skip to content
Snippets Groups Projects
Commit 17be7eb7 authored by Lorenzo Del Pianta's avatar Lorenzo Del Pianta :robot:
Browse files

Update .gitlab-ci.yml file with better syntax

parent 6e52c620
No related branches found
No related tags found
1 merge request!273Changing builder image in ci pipeline
Pipeline #10134874 canceled
...@@ -16,11 +16,9 @@ stages: ...@@ -16,11 +16,9 @@ stages:
# Prepare Kaniko configuration file # Prepare Kaniko configuration file
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json - 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. # 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" - /kaniko/executor --context "$CI_PROJECT_DIR/$CONTEXT_DIR" --dockerfile "$CI_PROJECT_DIR/$CONTEXT_DIR/$DOCKERFILE" --destination "${IMAGE_DESTINATION}" $BUILD_ARGS
--destination "${CI_REGISTRY_IMAGE}/${IMAGE_NAME}:${TAG}" $BUILD_ARGS
# Print the full registry path of the pushed image # Print the full registry path of the pushed image
- echo "Image pushed to ${CI_REGISTRY_IMAGE}/${IMAGE_NAME}:${TAG}" - echo "Image pushed to ${IMAGE_DESTINATION}"
- echo "${IMAGE_DESTINATION}"
environment: environment:
stage: environment stage: environment
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment