Skip to content
Snippets Groups Projects
Commit 7081b7d3 authored by Nicolas Lenz's avatar Nicolas Lenz :snowflake:
Browse files

Use include for docker

parent d1d0c683
No related branches found
No related tags found
No related merge requests found
Pipeline #86230 failed
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment