Commit 5c4dc70e authored by Nicolas Lenz's avatar Nicolas Lenz

Just use latest stack-build and change build path

parent 31be15c3
Pipeline #548 passed with stages
in 11 minutes and 22 seconds
......@@ -7,11 +7,11 @@ stages:
build:
stage: build
image: fpco/stack-build:lts-15
image: fpco/stack-build:latest
script:
- rm stack.yaml.lock # workaround
- stack build
- cp $(stack path --dist-dir)/build/mock-bot-telegram/mock-bot-telegram .
- cp $(stack path --local-install-root)/bin/mock-bot-telegram .
artifacts:
paths:
- mock-bot-telegram
......@@ -26,6 +26,6 @@ build-image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
script:
- cp mock-bot-telegram docker/
- mv mock-bot-telegram 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