Commit d6a477ea authored by Alix Biton's avatar Alix Biton
Browse files

Update .gitlab-ci.yml

parent 64f31db9
Pipeline #14385 failed
# This file is a template, and might need editing before it works on your project.
# see https://docs.gitlab.com/ee/ci/yaml/README.html for all available options
# you can delete this line if you're not using Docker
variables:
IMAGE_TAG:
value: "changeme" # Deploy to staging by default
description: "Tag to apply to the docker images. MUST start with 'test-'."
build:
publish-images:
needs:
- project: 'abiton/test-ci-downstream'
job: build-images
ref: master
artifacts: true
rules:
- if: "$IMAGE_TAG =~ /^test-/ && $SOMTAK "
stage: build
script:
- echo "docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY"
- echo "docker build -t $CI_REGISTRY_IMAGE:$IMAGE_TAG"
child-pipeline:
rules:
- if: "$IMAGE_TAG"
trigger:
project: 'abiton/test-ci-downstream'
strategy: depend
- if: "$CI_PIPELINE_SOURCE == 'web'"
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