-
Notifications
You must be signed in to change notification settings - Fork 2
/
.drone.yml
56 lines (51 loc) · 1.2 KB
/
.drone.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
---
kind: pipeline
name: default
steps:
- name: copy-sigs
image: alpine:3
commands:
- cp /tmp/signatures.json site/assets/signatures/signatures.json
volumes:
- name: signatures
path: /tmp/signatures.json
when:
branch:
- master
event:
exclude:
# do not copy sigs in pull requests to speed up builds
- pull_request
- name: deploy
image: docker:20
environment:
XDG_RUNTIME_DIR: "/run/user/1001"
DOCKER_HOST: "unix:///run/user/1001/docker.sock"
commands:
- docker compose -p pmpc-website up --build -d
volumes:
- name: dockersock
path: /run/user/1001/docker.sock
when:
branch:
- master
event:
- push
- tag
- deployment
- cron
# This has to run on the same machine as the forms API until this feature
# exists: https://git.fsfe.org/fsfe-system-hackers/forms/issues/62
node:
cont2: noris
volumes:
- name: dockersock
host:
path: /run/user/1001/docker.sock
- name: signatures
host:
path: /srv/forms/pmpc/signatures.json
---
kind: signature
hmac: 19a6f1dd012f34190db2a53207dc5311e87eee4467a5efd5c23149cb19ffff00
...