Skip to content
Snippets Groups Projects

Docker image publishing job template

Merged Konrad Botor requested to merge kbotor/image-publishing-job into develop
1 file
+ 12
0
Compare changes
  • Side-by-side
  • Inline
@@ -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
Loading