-
-
Notifications
You must be signed in to change notification settings - Fork 39
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
44 lines (36 loc) · 1.03 KB
/
.gitlab-ci.yml
File metadata and controls
44 lines (36 loc) · 1.03 KB
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
---
image: debian:bookworm-slim
variables:
GIT_SUBMODULE_STRATEGY: recursive
# Pin hugo version from buster for guardianproject.info
.hugo-template: &hugo-template |
printf 'Package: hugo\nPin: version 0.5*\nPin-Priority: 1000\n' > /etc/apt/preferences.d/hugo
echo 'deb https://snapshot.debian.org/archive/debian/20240630T000000Z/ buster main' > /etc/apt/sources.list.d/buster.list
apt-get update
apt-get -qy install --no-install-recommends hugo
sed -i "s,^baseURL\x3a.*,baseURL\x3a https://${CI_PROJECT_NAMESPACE}.gitlab.io/${CI_PROJECT_NAME}/," config.yaml
release:
image: registry.gitlab.com/fdroid/fdroidserver:buildserver-trixie
script:
- apt-get update
- apt-get dist-upgrade
- test -n "$fdroidserver" || source /etc/profile.d/bsenv.sh
- ./gradlew assembleRelease
artifacts:
paths:
- app/build/outputs/apk/*.apk
test:
script:
- *hugo-template
- hugo
except:
- master
pages:
script:
- *hugo-template
- hugo
artifacts:
paths:
- public
only:
- master