Skip to content
Snippets Groups Projects
Verified Commit b37ffe0c authored by Alexander Wellbrock's avatar Alexander Wellbrock
Browse files

gitlab-ci-template: fix using custom Dockerfile

When using a custom Dockerfile the podman build command also needs to
know about this with the -f flag.
parent adc713b5
Branches
No related tags found
No related merge requests found
Pipeline #16046 failed
......@@ -30,6 +30,7 @@ variables:
$CI_REGISTRY_BUILD_ARGS
-t "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA-$CI_REGISTRY_IMAGE_ARCH"
--format docker
-f "${CI_REGISTRY_BUILD_DOCKERFILE:-./Dockerfile}"
"${CI_REGISTRY_BUILD_CONTEXT:-.}"
- podman push "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA-$CI_REGISTRY_IMAGE_ARCH"
- podman push "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA-$CI_REGISTRY_IMAGE_ARCH" "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG-latest-$CI_REGISTRY_IMAGE_ARCH"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment