Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gitlabci-ansible
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
docker-images
gitlabci-ansible
Merge requests
!7
Resolve "Fix build job"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Fix build job"
7-fix-build-job
into
master
Overview
0
Commits
1
Pipelines
0
Changes
1
Merged
Jens Heidbüchel
requested to merge
7-fix-build-job
into
master
4 years ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
Closes
#7 (closed)
Edited
4 years ago
by
Jens Heidbüchel
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
6aede3e1
1 commit,
4 years ago
1 file
+
2
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
.gitlab-ci.yml
+
2
−
0
Options
@@ -8,6 +8,7 @@ image:
Build alpine image
:
stage
:
build
script
:
-
mkdir /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 $CI_PROJECT_DIR/Dockerfile.alpine --destination $CI_REGISTRY_IMAGE:alpine --destination $CI_REGISTRY_IMAGE:latest
only
:
@@ -16,6 +17,7 @@ Build alpine image:
Build ubuntu image
:
stage
:
build
script
:
-
mkdir /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 $CI_PROJECT_DIR/Dockerfile.ubuntu --destination $CI_REGISTRY_IMAGE:ubuntu
only
:
Loading