Commit 16b93b6d authored by Joseph Walton-Rivers's avatar Joseph Walton-Rivers 🐦

Update .gitlab-ci.yml - create CI registry task

parent 9c5cf841
Pipeline #2452 failed with stages
in 11 minutes and 13 seconds
......@@ -59,6 +59,22 @@ container:
- podman logout --authfile /tmp/docker.json "${REGISTRY_SERVER}"
only:
- master
ci_container:
stage: publish
image: tomkukral/buildah
before_script:
- podman version
- buildah version
- podman login --username "${CI_REGISTRY_USER}" --password "${CI_REGISTRY_PASSWORD}" --authfile /tmp/docker.json "${CI_REGISTRY}"
script:
- export STORAGE_DRIVER=vfs
- buildah bud -t ${IMAGE_NAME}:${CI_COMMIT_SHA} .
- buildah push --authfile /tmp/docker.json ${IMAGE_NAME}:${CI_COMMIT_SHA} docker://${IMAGE_NAME}:snapshot
after_script:
- podman logout --authfile /tmp/docker.json "${REGISTRY_SERVER}"
only:
- master
#dist_ci:
# image: docker:latest
......
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