Skip to content
Snippets Groups Projects
Verified Commit e951b1f8 authored by Jakob Moser's avatar Jakob Moser
Browse files

Dockerize it

parent 63bc3370
No related branches found
No related tags found
No related merge requests found
Pipeline #6353 passed
.git
.gitlab-ci.yml
.dockerignore
.gitignore
Dockerfile
# * `.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
FROM nginx:latest
COPY . /usr/share/nginx/html
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment