forked from commercialhaskell/stack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
42 lines (35 loc) · 885 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
42
image: registry.gitlab.fpcomplete.com/fpco/default-build-image:1954
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
- (cd etc/scripts && stack --install-ghc install --pedantic)
- stack-release-script check
manual_build:
stage: build
when: manual
script: *build
docker_image_lts-10:
stage: build
when: manual
script:
- docker login -u "$PROD_DOCKER_USERNAME" -p "$PROD_DOCKER_PASSWORD"
- etc/dockerfiles/stack-build/build.sh --push lts-10
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