Skip to content

Commit

Permalink
CI add jobs to publish Docker images description to hub.docker.com (#…
Browse files Browse the repository at this point in the history
…1906)

* Add CI jobs to publish docker images description

* Add stub files for docker images description
  • Loading branch information
sergejparity authored Feb 24, 2023
1 parent db5168f commit b5d5d03
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 1 deletion.
47 changes: 46 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ stages:
- test
- build
- publish
- publish-docker-description

variables:
GIT_STRATEGY: fetch
Expand Down Expand Up @@ -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
1 change: 1 addition & 0 deletions docs/dockerhub-bridges-common-relay.README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# bridges-common-relay
1 change: 1 addition & 0 deletions docs/dockerhub-millau-bridge-node.README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# millau-bridge-node
1 change: 1 addition & 0 deletions docs/dockerhub-rialto-bridge-node.README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# rialto-bridge-node
1 change: 1 addition & 0 deletions docs/dockerhub-rialto-parachain-collator.README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# rialto-parachain-collator
1 change: 1 addition & 0 deletions docs/dockerhub-substrate-relay.README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# substrate-relay

0 comments on commit b5d5d03

Please sign in to comment.