From b5d5d03abee551f23129e348fd8dccd05a120757 Mon Sep 17 00:00:00 2001 From: Sergejs Kostjucenko <85877331+sergejparity@users.noreply.github.com> Date: Fri, 24 Feb 2023 16:27:59 +0200 Subject: [PATCH] CI add jobs to publish Docker images description to hub.docker.com (#1906) * Add CI jobs to publish docker images description * Add stub files for docker images description --- .gitlab-ci.yml | 47 ++++++++++++++++++- docs/dockerhub-bridges-common-relay.README.md | 1 + docs/dockerhub-millau-bridge-node.README.md | 1 + docs/dockerhub-rialto-bridge-node.README.md | 1 + ...kerhub-rialto-parachain-collator.README.md | 1 + docs/dockerhub-substrate-relay.README.md | 1 + 6 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 docs/dockerhub-bridges-common-relay.README.md create mode 100644 docs/dockerhub-millau-bridge-node.README.md create mode 100644 docs/dockerhub-rialto-bridge-node.README.md create mode 100644 docs/dockerhub-rialto-parachain-collator.README.md create mode 100644 docs/dockerhub-substrate-relay.README.md diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 15ba0ca7cb6..b232f610690 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,6 +4,7 @@ stages: - test - build - publish + - publish-docker-description variables: GIT_STRATEGY: fetch @@ -315,4 +316,48 @@ bridges-common-relay: BRIDGES_PROJECT: substrate-relay DOCKER_IMAGE_NAME: bridges-common-relay -# FIXME: publish binaries +# Publish Docker images description to hub.docker.com + +.publish-docker-image-description: &publish-docker-image-description + stage: publish-docker-description + image: paritytech/dockerhub-description + variables: + DOCKER_USERNAME: $Docker_Hub_User_Parity + DOCKER_PASSWORD: $Docker_Hub_Pass_Parity + README_FILEPATH: $CI_PROJECT_DIR/docs/${CI_JOB_NAME}.README.md + rules: + - if: $CI_COMMIT_REF_NAME == "master" + changes: + - docs/${CI_JOB_NAME}.README.md + script: + - export DOCKERHUB_REPOSITORY="paritytech/${CI_JOB_NAME:10}" + - cd / && sh entrypoint.sh + tags: + - kubernetes-parity-build + +dockerhub-rialto-bridge-node: + extends: .publish-docker-image-description + variables: + SHORT_DESCRIPTION: "rialto-bridge-node" + +dockerhub-rialto-parachain-collator: + extends: .publish-docker-image-description + variables: + SHORT_DESCRIPTION: "rialto-parachain-collator" + +dockerhub-millau-bridge-node: + extends: .publish-docker-image-description + variables: + SHORT_DESCRIPTION: "millau-bridge-node" + +dockerhub-substrate-relay: + extends: .publish-docker-image-description + variables: + SHORT_DESCRIPTION: "substrate-relay" + +dockerhub-bridges-common-relay: + extends: .publish-docker-image-description + variables: + SHORT_DESCRIPTION: "bridges-common-relay" + +# FIXME: publish binaries \ No newline at end of file diff --git a/docs/dockerhub-bridges-common-relay.README.md b/docs/dockerhub-bridges-common-relay.README.md new file mode 100644 index 00000000000..d199227c9c6 --- /dev/null +++ b/docs/dockerhub-bridges-common-relay.README.md @@ -0,0 +1 @@ +# bridges-common-relay diff --git a/docs/dockerhub-millau-bridge-node.README.md b/docs/dockerhub-millau-bridge-node.README.md new file mode 100644 index 00000000000..481ad46b7c6 --- /dev/null +++ b/docs/dockerhub-millau-bridge-node.README.md @@ -0,0 +1 @@ +# millau-bridge-node diff --git a/docs/dockerhub-rialto-bridge-node.README.md b/docs/dockerhub-rialto-bridge-node.README.md new file mode 100644 index 00000000000..2393e6f8129 --- /dev/null +++ b/docs/dockerhub-rialto-bridge-node.README.md @@ -0,0 +1 @@ +# rialto-bridge-node diff --git a/docs/dockerhub-rialto-parachain-collator.README.md b/docs/dockerhub-rialto-parachain-collator.README.md new file mode 100644 index 00000000000..a09f6b1561b --- /dev/null +++ b/docs/dockerhub-rialto-parachain-collator.README.md @@ -0,0 +1 @@ +# rialto-parachain-collator diff --git a/docs/dockerhub-substrate-relay.README.md b/docs/dockerhub-substrate-relay.README.md new file mode 100644 index 00000000000..1a9f22c425c --- /dev/null +++ b/docs/dockerhub-substrate-relay.README.md @@ -0,0 +1 @@ +# substrate-relay