Skip to content
Snippets Groups Projects
Commit f7f9cf16 authored by Andres Maldonado's avatar Andres Maldonado
Browse files

[.gitlab-ci.yml] Translate 'only' to newer 'rules' syntax

parent f7304512
No related branches found
No related tags found
No related merge requests found
......@@ -44,12 +44,11 @@ pica-ci-base:
- docker push $REGISTRY_PROD/pica-ci-base:latest
after_script:
- docker logout $REGISTRY_PROD
only:
changes:
- "pica-ci-base/**"
refs:
- master
- dev-ci
rules:
- if: '$CI_COMMIT_BRANCH == "master" || $CI_COMMIT_BRANCH == "dev-ci"'
changes:
- "pica-ci-base/**"
when: always
# Create a file a few environment variables added (which Dockerfile has been modified, the complete name of the image...)
# The file will be an artifact shared with further steps
......@@ -62,10 +61,11 @@ set-variables:
- ./get-modified-image.sh
# If the Dockerfile is changed, force the build.
# Otherwise, may be triggered manually.
only:
changes:
rules:
- changes:
- "pica-*/**"
- "meta-*/**"
when: always
# Build the image that was modified
build:
......@@ -178,9 +178,8 @@ push-prod:
- docker push $MODIFIED_IMAGE_FULL
after_script:
- docker logout $REGISTRY_PROD
only:
refs:
- master
changes:
rules:
- if: '$CI_COMMIT_BRANCH == "master"'
changes:
- "pica-*/**"
when: manual
when: manual
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment