Commit 7386ee0e authored by Joseph Walton-Rivers's avatar Joseph Walton-Rivers 🐦

explictly set the auth file path

parent 4fc8ad9e
Pipeline #2199 failed with stages
in 7 minutes and 40 seconds
......@@ -50,13 +50,12 @@ container:
- podman version
- buildah version
- podman login --username "${REGISTRY_USERNAME}" --password "${REGISTRY_PASSWORD}" "${REGISTRY_SERVER}"
- podman login --username "${REGISTRY_USERNAME}" --password "${REGISTRY_PASSWORD}" --authfile /tmp/docker.json "${REGISTRY_SERVER}"
- buildah bud -t ${IMAGE_NAME}:${CI_COMMIT_SHA} .
- buildah push ${IMAGE_NAME}:${CI_COMMIT_SHA} docker://${IMAGE_NAME}:snapshot
- ls ${XDG_RUNTIME_DIR}/containers/auth.json
- buildah push ${IMAGE_NAME}:${CI_COMMIT_SHA} --authfile /tmp/docker.json docker://${IMAGE_NAME}:snapshot
- podman logout "${REGISTRY_SERVER}"
- podman logout --authfile /tmp/docker.json "${REGISTRY_SERVER}"
# 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