forked from commercialhaskell/stack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
41 lines (34 loc) · 828 Bytes
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
image: registry.gitlab.fpcomplete.com/fpco/default-build-image:4297
cache:
key: "$CI_BUILD_NAME"
paths:
- .stack-work/
- .stack-root/
stages:
- build
variables:
STACK_ROOT: "${CI_PROJECT_DIR}/.stack-root"
build:
stage: build
only:
- master
- stable
script: &build
- export PATH=$HOME/.local/bin:$PATH
- stack etc/scripts/release.hs check
manual_build:
stage: build
when: manual
script: *build
docker_image_lts-11:
stage: build
when: manual
script:
- docker login -u "$PROD_DOCKER_USERNAME" -p "$PROD_DOCKER_PASSWORD"
- etc/dockerfiles/stack-build/build.sh --push lts-11
docker_image_lts-12:
stage: build
when: manual
script:
- docker login -u "$PROD_DOCKER_USERNAME" -p "$PROD_DOCKER_PASSWORD"
- etc/dockerfiles/stack-build/build.sh --push lts-12