-
Notifications
You must be signed in to change notification settings - Fork 14
/
.drone.yml
68 lines (60 loc) · 1.45 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
57
58
59
60
61
62
63
64
65
66
67
68
---
# SPDX-FileCopyrightText: Free Software Foundation Europe e.V.
#
# SPDX-License-Identifier: GPL-3.0-or-later
kind: pipeline
name: default
steps:
# Check for REUSE compliance
- name: reuse
image: fsfe/reuse:latest
commands:
- reuse lint
# Create translations for markdown via PO files
- name: po4a
image: alpine:3.19
commands:
- apk add perl-yaml-tiny po4a diffutils
- po4a po4a.conf
# Create .status file for important i18n translation strings
- name: check_translations
image: python:3.10-alpine
commands:
- python3 check_translations.py site/i18n
# Build hugo
- name: hugo
image: plugins/hugo
settings:
source: site
hugo_version: 0.125.4
validate: false
# Build and deploy Docker
- name: deploy
image: docker/compose:1.29.2
environment:
XDG_RUNTIME_DIR: "/run/user/1001"
DOCKER_HOST: "unix:///run/user/1001/docker.sock"
# Use BuildKit to skip "development" step in Dockerfiles
DOCKER_BUILDKIT: 1
commands:
- docker-compose -p reuse-website up --build -d
volumes:
- name: dockersock
path: /run/user/1001/docker.sock
when:
branch:
- main
event:
- push
- tag
- deployment
node:
cont2: noris
volumes:
- name: dockersock
host:
path: /run/user/1001/docker.sock
---
kind: signature
hmac: 4f8188b5f7ce1e04843b5534f6ec240142f0b66c8c02a50c97335feaf5088abc
...