Commit 06c15a7f authored by Alix Biton's avatar Alix Biton
Browse files

Update .gitlab-ci.yml

parent 33b52db6
Pipeline #14273 passed with stage
in 16 seconds
......@@ -3,14 +3,13 @@
# you can delete this line if you're not using Docker
variables:
DEPLOY_ENVIRONMENT:
value: "staging" # Deploy to staging by default
description: "The deployment target. Change this variable to 'canary' or 'production' if needed."
IMAGE_TAG:
value: "changeme" # Deploy to staging by default
description: "Tag to apply to the docker images. MUST start with 'test-'."
build:
only:
- trigger
rules:
- if: "$IMAGE_TAG =~ /^test-/ && ($CI_PIPELINE_SOURCE == 'trigger' || $CI_PIPELINE_SOURCE == 'web')"
stage: build
script:
- '[ ! -z "${BUILD_TAG}" ] # Build tag must be set'
- echo "docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY"
- echo "docker build -t $CI_REGISTRY_IMAGE:$BUILD_TAG"
- echo "docker build -t $CI_REGISTRY_IMAGE:$IMAGE_TAG"
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