gitlab-ci: ensure buildserver env vars are always set

GitLab CI runs the Docker images in a way that makes it not a login shell.
Files in /etc/profile.d are only sourced automatically in a login shell,
so it needs to happen manually here.
This commit is contained in:
Hans-Christoph Steiner 2022-01-18 10:22:15 +01:00
parent 4959f3c30d
commit 125a378a0b
No known key found for this signature in database
GPG key ID: 3E177817BA1B9BFA

View file

@ -247,7 +247,7 @@ fdroid build:
- apt-get update
- apt-get dist-upgrade
- source /etc/profile.d/bsenv.sh
- test -n "$fdroidserver" || source /etc/profile.d/bsenv.sh
# TODO remove sdkmanager install once it is included in the buildserver image
- git clone --depth=1 --branch=0.5.2 https://gitlab.com/fdroid/sdkmanager.git
@ -335,6 +335,7 @@ pages:
- apt-get update
- apt-get dist-upgrade
- test -n "$fdroidserver" || source /etc/profile.d/bsenv.sh
- test -d $fdroidserver || mkdir $fdroidserver
- git ls-remote https://gitlab.com/fdroid/fdroidserver.git master
- curl --silent https://gitlab.com/fdroid/fdroidserver/-/archive/master/fdroidserver-master.tar.gz