Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI add jobs to publish Docker images description to hub.docker.com #1906

Merged
merged 2 commits into from
Feb 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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