-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
44 lines (41 loc) · 975 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
43
44
image: wener/apis:builder
stages:
- build
- deploy
Build Image:
stage: build
services:
- docker:dind
variables:
DOCKER_HOST: tcp://docker:2375/
DOCKER_DRIVER: overlay2
# See https://github.com/docker-library/docker/pull/166
DOCKER_TLS_CERTDIR: ""
before_script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
script:
- mkdir /etc/apk/cache
- make ci
# - echo Building image "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG"
# - docker build --pull -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG" .
# - docker push "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG"
artifacts:
paths:
- packages/server/public
pages:
stage: deploy
script:
- cp -r packages/server/public public
artifacts:
paths:
- public
only:
- master
cache:
untracked: true
key: "$CI_COMMIT_REF_NAME"
paths:
# - node_modules/
- .yarn/
- packages/server/.next/cache/
- /etc/apk/cache