Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Add docker-description publishing #514

Merged
merged 4 commits into from
Feb 23, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
26 changes: 26 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ stages:
- build
- test
- prod
- publish-docker-description

variables: &default-vars
REGISTRY_PATH: docker.io/paritytech
Expand Down Expand Up @@ -92,6 +93,23 @@ default:
--tag "$REGISTRY_PATH/$IMAGE_NAME:staging"
--file "dockerfiles/$IMAGE_NAME/Dockerfile" dockerfiles

.publish-docker-image-description:
stage: publish-docker-description
image: paritytech/dockerhub-description
variables:
DOCKERHUB_REPOSITORY: paritytech/$IMAGE_NAME
DOCKER_USERNAME: $Docker_Hub_User_Parity
DOCKER_PASSWORD: $Docker_Hub_Pass_Parity
README_FILEPATH: $CI_PROJECT_DIR/dockerfiles/$IMAGE_NAME/README.md
rules:
- if: $CI_COMMIT_REF_NAME == "sk-docker-description"
changes:
- dockerfiles/$IMAGE_NAME/README.md
script:
- cd / && sh entrypoint.sh
tags:
- kubernetes-parity-build

#### stage: build

# Only build in PR
Expand Down Expand Up @@ -827,3 +845,11 @@ parity-scale-codec-production:
artifacts: false
rules:
- if: $IMAGE_NAME == "parity-scale-codec"

# Publish images descriptions to hub.docker.com

publish-ansible-docker-image-description:
extends: .publish-docker-image-description
variables:
IMAGE_NAME: ansible
SHORT_DESCRIPTION: "ansible utility Docker Image."
1 change: 1 addition & 0 deletions dockerfiles/ansible/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Ansible