Commit 27a7d0ae authored by Pietro Saccardi's avatar Pietro Saccardi

Add deploy to Docker Hub

parent 22f16cdc
Pipeline #861 passed with stages
in 1 minute
stages:
- docker
- publish
variables:
GIT_SUBMODULE_STRATEGY: recursive
......@@ -29,3 +30,22 @@ build:fedora-32:
variables:
BUILD_ARGS: --build-arg BASE=fedora:32
IMAGE_NAME: fedora-32
publish:docker-hub:
<<: *docker-job-template
environment:
name: Docker Hub
url: https://hub.docker.com/r/mittelab/freeipa-client
stage: publish
script:
- export FROM_IMAGE="${CI_REGISTRY}/${CI_PROJECT_PATH}/${FROM_IMAGE_NAME}"
- docker pull "${FROM_IMAGE}"
- docker logout
- docker login -u "${HUB_USER}" -p "${HUB_ACCESS_TOKEN}"
- docker tag "${FROM_IMAGE}" "${TO_IMAGE}"
- docker push "${TO_IMAGE}"
variables:
FROM_IMAGE_NAME: fedora-32:latest
TO_IMAGE: mittelab/freeipa-client:fedora-32
only:
- master
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment