Skip to content
Snippets Groups Projects
Verified Commit 656cd167 authored by Konrad Botor's avatar Konrad Botor
Browse files

Added Docker image publishing job template - ref. hive#434

parent 0a8b4a4d
No related branches found
No related tags found
1 merge request!5Docker image publishing job template
Pipeline #62413 passed
......@@ -36,3 +36,15 @@ variables:
- echo "Attempting to cleanup an image $IMAGE_PATH using tag $IMAGE_TAG from $REGISTRY"
- python /delete-image.py "$REGISTRY_PASS" "$CI_PROJECT_ID" "$IMAGE_PATH" "$IMAGE_TAG"
when: always
.publish_docker_image_template:
extends: .docker_image_builder_job_template
needs: []
variables:
DOCKER_HUB_USER: $DOCKER_HUB_USER
DOCKER_HUB_PASSWORD: $DOCKER_HUB_PASSWORD
before_script:
- echo "Disabled the default before_script from image builder job template"
rules:
- if: '$CI_COMMIT_TAG && $CI_COMMIT_REF_PROTECTED == "true"'
when: manual
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment