forked from dharrigan/startrek
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
56 lines (49 loc) · 965 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
45
46
47
48
49
50
51
52
53
54
55
56
---
image: docker.harrigan.online/clojure/docker:latest
variables:
DOCKER_TLS_CERTDIR: "/certs"
GITLIBS: ".gitlibs"
# I don't think this cache thing works..., so I've disabled it for now.
.cache:
before_script:
- sed -i 's,;;CI ,,g' deps.edn
cache:
key:
files:
- deps.edn
paths:
- .cpcache
- .gitlibs
- .m2/repository
stages:
- package
- publish
services:
- name: docker:dind
command: ["--registry-mirror", "https://docker.harrigan.online"]
package:
#extends: .cache
stage: package
script:
- just build
artifacts:
paths:
- target/app.jar
expire_in: 1 day
publish:
stage: publish
dependencies:
- package
variables:
DOCKER_CONFIG: /root/.docker
before_script:
- mkdir -p $DOCKER_CONFIG
- echo "$DOCKER_AUTH_CONFIG" > $DOCKER_CONFIG/config.json
script:
- just imagify publish
only:
- master
except:
- branches
tags:
- docker