Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit 6528022

Browse files
author
Mira Ressel
committed
only push docker descriptions on master branch pipelines
Currently those jobs also get included in multi-project pipelines such as https://gitlab.parity.io/parity/mirrors/scripts/-/pipelines/255546, even when the description hasn't actually changed, because `changes:` conditions always evaluate to true on non-branch pipelines.
1 parent 859bb12 commit 6528022

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/ci/gitlab/pipeline/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
DOCKER_PASSWORD: $Docker_Hub_Pass_Parity
6161
README_FILEPATH: $CI_PROJECT_DIR/scripts/ci/docker/$PRODUCT.Dockerfile.README.md
6262
rules:
63-
- if: $CI_COMMIT_REF_NAME == "master"
63+
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH && $CI_PIPELINE_SOURCE == "push"
6464
changes:
6565
- scripts/ci/docker/$PRODUCT.Dockerfile.README.md
6666
script:

0 commit comments

Comments
 (0)