Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CI-CD Components for Docker
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ub-unibas
CI
CI-CD Components for Docker
Commits
74a21cbc
Verified
Commit
74a21cbc
authored
5 months ago
by
Sebastian Schüpbach
Browse files
Options
Downloads
Patches
Plain Diff
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
Stage: test
Stage: publish
in 21 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
templates/publish-image.yml
+2
-1
2 additions, 1 deletion
templates/publish-image.yml
with
2 additions
and
1 deletion
templates/publish-image.yml
+
2
−
1
View file @
74a21cbc
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment