Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Portal
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Fachschaft
Portal
Commits
e951b1f8
Verified
Commit
e951b1f8
authored
10 months ago
by
Jakob Moser
Browse files
Options
Downloads
Patches
Plain Diff
Dockerize it
parent
63bc3370
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#6353
passed
10 months ago
Stage: build
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.dockerignore
+5
-0
5 additions, 0 deletions
.dockerignore
.gitlab-ci.yml
+18
-0
18 additions, 0 deletions
.gitlab-ci.yml
Dockerfile
+3
-0
3 additions, 0 deletions
Dockerfile
with
26 additions
and
0 deletions
.dockerignore
0 → 100644
+
5
−
0
View file @
e951b1f8
.git
.gitlab-ci.yml
.dockerignore
.gitignore
Dockerfile
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
0 → 100644
+
18
−
0
View file @
e951b1f8
# * `.gitlab-ci.yml` file copied and modified from the GitLab Documentation (as of 2021-01-10, the contents of the script seem to have changed by now)
# * Title of the documentation page: "Building a Docker image with kaniko"
# * Author: (c) 2011-present GitLab B.V.
# * URL: https://docs.gitlab.com/ee/ci/docker/using_kaniko.html#building-a-docker-image-with-kaniko
# * License: CC BY-SA 4.0 (https://creativecommons.org/licenses/by-sa/4.0)
docker-build
:
image
:
name
:
gcr.io/kaniko-project/executor:debug
entrypoint
:
[
"
"
]
stage
:
build
before_script
:
-
mkdir -p /kaniko/.docker
-
echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
script
:
-
/kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG
only
:
-
master
This diff is collapsed.
Click to expand it.
Dockerfile
0 → 100644
+
3
−
0
View file @
e951b1f8
FROM
nginx:latest
COPY
. /usr/share/nginx/html
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