Skip to content
Snippets Groups Projects
Verified Commit 74a21cbc authored by Sebastian Schüpbach's avatar Sebastian Schüpbach
Browse files

feat: assign inputs.dockerfile to DOCKERFILE envvar

parent 73affcc6
Branches main
Tags 1.3.1
No related merge requests found
Pipeline #140925 passed with stages
in 21 seconds
......@@ -9,6 +9,7 @@ spec:
stage: $[[ inputs.stage ]]
variables:
DOCKER_TLS_CERTDIR: ""
DOCKERFILE: $[[ inputs.dockerfile ]]
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
......@@ -16,7 +17,7 @@ spec:
- echo "Build image $IMAGE_TAG"
- mkdir -p /kaniko/.docker
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $[[ inputs.dockerfile ]] --destination $IMAGE_TAG
- /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $DOCKERFILE --destination $IMAGE_TAG
publish-image:
extends: .publish-image
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment