From 919d5cf3d4b188265a3dcc7da2e1697c68dfcdec Mon Sep 17 00:00:00 2001 From: Sergejs Kostjucenko <85877331+sergejparity@users.noreply.github.com> Date: Thu, 23 Feb 2023 16:53:03 +0200 Subject: [PATCH] Move rules into common place (#13428) --- scripts/ci/docker/substrate.Dockerfile.README.md | 1 + scripts/ci/gitlab/pipeline/publish.yml | 12 ++++++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 scripts/ci/docker/substrate.Dockerfile.README.md diff --git a/scripts/ci/docker/substrate.Dockerfile.README.md b/scripts/ci/docker/substrate.Dockerfile.README.md new file mode 100644 index 0000000000000..557fd8f835d73 --- /dev/null +++ b/scripts/ci/docker/substrate.Dockerfile.README.md @@ -0,0 +1 @@ +# Substrate Docker Image \ No newline at end of file diff --git a/scripts/ci/gitlab/pipeline/publish.yml b/scripts/ci/gitlab/pipeline/publish.yml index 0d2e0cac96afe..3c280dec7325c 100644 --- a/scripts/ci/gitlab/pipeline/publish.yml +++ b/scripts/ci/gitlab/pipeline/publish.yml @@ -60,6 +60,10 @@ DOCKER_USERNAME: $Docker_Hub_User_Parity DOCKER_PASSWORD: $Docker_Hub_Pass_Parity README_FILEPATH: $CI_PROJECT_DIR/scripts/ci/docker/$PRODUCT.Dockerfile.README.md + rules: + - if: $CI_COMMIT_REF_NAME == "master" + changes: + - scripts/ci/docker/$PRODUCT.Dockerfile.README.md script: - cd / && sh entrypoint.sh @@ -81,6 +85,12 @@ publish-docker-substrate: variables: PRODUCT: substrate +publish-docker-description-substrate: + extends: .push-docker-image-description + variables: + PRODUCT: substrate + SHORT_DESCRIPTION: "Substrate Docker Image." + publish-docker-substrate-temporary: extends: .build-push-image-temporary needs: @@ -105,8 +115,6 @@ publish-docker-subkey: publish-docker-description-subkey: extends: .push-docker-image-description - needs: - - job: build-subkey-linux variables: PRODUCT: subkey SHORT_DESCRIPTION: "The subkey program is a key management utility for Substrate-based blockchains."