Commit aa8b6a15 authored by Nicolas Lenz's avatar Nicolas Lenz
Browse files

Merge branch 'main' of git.eisfunke.com:software/surver

parents 5580b4a5 362126ae
Pipeline #863 passed with stages
in 4 minutes and 52 seconds
variables:
STACK_ROOT: "${CI_PROJECT_DIR}/.stack"
stages:
- build
- build-image
build:
stage: build
image: fpco/stack-build
script:
- stack build
- cp $(stack path --dist-dir)/build/surver/surver .
artifacts:
paths:
- surver
- config
cache:
paths:
- .stack-work
- .stack
docker:
stage: build-image
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
script:
- mv surver docker/
- mv config/ docker/
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- /kaniko/executor --context $CI_PROJECT_DIR/docker --dockerfile $CI_PROJECT_DIR/docker/dockerfile --destination $CI_REGISTRY_IMAGE:latest
Markdown is supported
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