publiccode.si/.drone.yml

57 lines
1.2 KiB
YAML
Raw Normal View History

---
kind: pipeline
name: default
2017-09-08 11:39:18 +02:00
steps:
2022-01-12 11:24:20 +01:00
- name: copy-sigs
image: alpine:3
commands:
- cp /tmp/signatures.json site/data/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
2022-01-12 11:24:20 +01:00
- name: deploy
2023-01-29 13:44:49 +01:00
image: docker:20
2022-01-12 11:24:20 +01:00
environment:
XDG_RUNTIME_DIR: "/run/user/1001"
DOCKER_HOST: "unix:///run/user/1001/docker.sock"
commands:
2023-01-29 13:44:49 +01:00
- docker compose -p pmpc-website up --build -d
2022-01-12 11:24:20 +01:00
volumes:
- name: dockersock
path: /run/user/1001/docker.sock
when:
branch:
- master
event:
- push
- tag
- deployment
- cron
2017-06-13 08:54:28 +02:00
2022-01-11 13:18:21 +01:00
# 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
2022-01-11 12:49:13 +01:00
node:
2022-01-12 11:24:20 +01:00
cont2: noris
2022-01-11 12:49:13 +01:00
volumes:
2022-01-12 11:24:20 +01:00
- name: dockersock
host:
path: /run/user/1001/docker.sock
- name: signatures
host:
path: /srv/forms/pmpc/signatures.json
2022-02-10 11:31:47 +01:00
---
kind: signature
2023-01-29 13:48:24 +01:00
hmac: 7072ad806c76dee8ac77e916e2cd451de72a5d1739b4d32b7bb81610d63825d6
2022-02-10 11:31:47 +01:00
...