-
Notifications
You must be signed in to change notification settings - Fork 1
/
.build.yml
44 lines (43 loc) · 1.17 KB
/
.build.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
# SPDX-FileCopyrightText: © nobody
# SPDX-License-Identifier: CC0-1.0
---
image: archlinux
packages:
- docker
- git
- go
- protobuf
- reuse
sources:
- "https://git.sr.ht/~mpldr/uniview"
secrets:
- ba45943f-f792-4287-87a5-09fdb803a8dd # GitHub SSH Key
- fb78c647-e9f5-4922-b804-7c795da4d56a # GitHub known_hosts
tasks:
- prepare: |
sudo usermod -aG docker $(whoami)
sudo systemctl start docker
set +e
docker_ps_return=1
until [ ${docker_ps_return} -eq 0 ]; do
sudo docker ps >/dev/null 2>&1
docker_ps_return=$?
sleep 1
done
set -e
- build: |
cd uniview
make
- docker-build: |
cd uniview
docker build .
- reuse-compliance: |
cd uniview
reuse lint
- check-authors-file: |
[ $((sha256sum AUTHORS; git shortlog -sn --group author --group trailer:co-authored-by | cut -f2 | sort -f | sha256sum ) | awk '{print $1}' | uniq | wc -l) -eq 1 ]
- mirror-to-github: |
[ $(git describe HEAD) == $(git describe origin/master) ] || exit 255
git clone --mirror https://git.sr.ht/~mpldr/uniview
cd uniview.git
git push --mirror git@github.com:mpldr/glog.git