Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PandocPlus
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nicolas Lenz
PandocPlus
Commits
7081b7d3
You need to sign in or sign up before continuing.
Commit
7081b7d3
authored
Jun 18, 2022
by
Nicolas Lenz
Browse files
Options
Downloads
Patches
Plain Diff
Use include for docker
parent
d1d0c683
No related branches found
No related tags found
No related merge requests found
Pipeline
#86230
failed
Jun 18, 2022
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+4
-29
4 additions, 29 deletions
.gitlab-ci.yml
with
4 additions
and
29 deletions
.gitlab-ci.yml
+
4
−
29
View file @
7081b7d3
stages
:
-
prepare
-
build
fonts
:
stage
:
prepare
stage
:
build
image
:
alpine
script
:
-
apk add --no-cache tar unzip xz wget
...
...
@@ -12,27 +8,6 @@ fonts:
paths
:
-
fonts
build-latest
:
stage
:
build
image
:
name
:
gcr.io/kaniko-project/executor:debug
entrypoint
:
[
"
"
]
rules
:
-
if
:
$CI_COMMIT_BRANCH == "master"
script
:
-
echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
-
/kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile
--destination $CI_REGISTRY_IMAGE:latest --destination $CI_REGISTRY_IMAGE:$(date -u +%Y-%m-%d_%H-%M-%S )
build
:
stage
:
build
image
:
name
:
gcr.io/kaniko-project/executor:debug
entrypoint
:
[
"
"
]
rules
:
-
if
:
$CI_COMMIT_BRANCH == "master"
when
:
never
script
:
-
echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
-
/kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile
--destination $CI_REGISTRY_IMAGE:$CI_COMMIT_BRANCH_$(date -u +%Y-%m-%d_%H-%M-%S )
include
:
file
:
docker-build.gitlab-ci.yml
project
:
software/ci-includes
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