Commit dd26a570 authored by Robotka Adrián's avatar Robotka Adrián
Browse files

Update .gitlab-ci.yml

parent 2d9d4782
Pipeline #5067 failed
stages:
- build
before_script:
# auth docker registry before using it
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$KSZK_NEXUS_USERNAME\",\"password\":\"$KSZK_NEXUS_PASSWORD\"}}}"
> /kaniko/.docker/config.json
###################### Image builder template #####################
# include CI config from another repo
include:
- project: kszk/sysadmin/ci
file: /docker-build.yaml
# template that extends a template
# hidden job, not gonna run, just for the inheritance
.image-template:
stage: build
extends: .kszk-docker-build
variables:
IMAGE_NAME: $CI_JOB_NAME
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
script:
- /kaniko/executor
--context $CI_PROJECT_DIR
--dockerfile $CI_PROJECT_DIR/$IMAGE_NAME/Dockerfile
--destination "$CI_REGISTRY_IMAGE/$IMAGE_NAME"
IMAGE_NAME: "$CI_JOB_NAME"
############################ Real work ############################
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment