Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
archbuild
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
David Mehren
archbuild
Commits
a0c16ce1
Commit
a0c16ce1
authored
Dec 27, 2021
by
David Mehren
Browse files
Options
Downloads
Patches
Plain Diff
Replace Docker with Kaniko
parent
3949daaa
No related branches found
No related tags found
No related merge requests found
Pipeline
#107237
passed
Oct 22, 2022
Stage: build
Changes
1
Pipelines
311
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+22
-22
22 additions, 22 deletions
.gitlab-ci.yml
with
22 additions
and
22 deletions
.gitlab-ci.yml
+
22
−
22
View file @
a0c16ce1
...
@@ -4,27 +4,27 @@ image: docker:latest
...
@@ -4,27 +4,27 @@ image: docker:latest
variables
:
variables
:
DOCKER_DRIVER
:
overlay2
DOCKER_DRIVER
:
overlay2
build-master
:
#
build-master:
stage
:
build
#
stage: build
services
:
#
services:
-
docker:dind
#
- docker:dind
script
:
#
script:
-
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
#
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
-
docker build --no-cache --pull -t "$CI_REGISTRY_IMAGE" .
#
- docker build --no-cache --pull -t "$CI_REGISTRY_IMAGE" .
-
docker push "$CI_REGISTRY_IMAGE"
#
- docker push "$CI_REGISTRY_IMAGE"
only
:
#
only:
-
master
#
- master
build
:
#
build:
stage
:
build
#
stage: build
services
:
#
services:
-
docker:dind
#
- docker:dind
script
:
#
script:
-
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
#
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
-
docker build --no-cache --pull -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG" .
#
- docker build --no-cache --pull -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG" .
-
docker push "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG"
#
- docker push "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG"
except
:
#
except:
-
master
#
- master
kaniko-build
:
kaniko-build
:
stage
:
build
stage
:
build
...
@@ -38,6 +38,6 @@ kaniko-build:
...
@@ -38,6 +38,6 @@ kaniko-build:
/kaniko/executor
/kaniko/executor
--context "${CI_PROJECT_DIR}"
--context "${CI_PROJECT_DIR}"
--dockerfile "${CI_PROJECT_DIR}/Dockerfile"
--dockerfile "${CI_PROJECT_DIR}/Dockerfile"
--destination "${CI_REGISTRY_IMAGE}
:kaniko
"
--destination "${CI_REGISTRY_IMAGE}"
only
:
only
:
-
master
-
master
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