Skip to content
Snippets Groups Projects
Commit dd26a570 authored by Robotka István Adrián's avatar Robotka István Adrián
Browse files

Update .gitlab-ci.yml

parent 2d9d4782
No related branches found
No related tags found
No related merge requests found
Pipeline #5067 failed
stages: # include CI config from another repo
- build include:
- project: kszk/sysadmin/ci
before_script: file: /docker-build.yaml
# 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 #####################
# template that extends a template
# hidden job, not gonna run, just for the inheritance # hidden job, not gonna run, just for the inheritance
.image-template: .image-template:
stage: build extends: .kszk-docker-build
variables: variables:
IMAGE_NAME: $CI_JOB_NAME 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"
############################ Real work ############################ ############################ Real work ############################
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment