Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/.gitlab/ci/build-host.sh
diff options
context:
space:
mode:
authorDavid Runge <dvzrv@archlinux.org>2021-05-10 22:49:56 +0200
committerDavid Runge <dvzrv@archlinux.org>2021-05-11 16:44:23 +0200
commit5630a23ba16aa6159cc3a08251a6f7dc97e697da (patch)
treed4bf285139f277441e92eb0d24333669dee23535 /.gitlab/ci/build-host.sh
parent6b11d7be7a4422ca00a023c521f6344652f5b2d1 (diff)
ci: build based on buildmodes
.gitlab/ci/build-inside-vm.sh: Expand the script to allow building based on mkarchiso's buildmodes. Accept two parameters now: profile and buildmode. Add gitlab collapsable sections by adding specific printfs for it to all functions. Add extglob to be able to more specifically target files. Change `create_checksums()` to also generate the legacy md5 and sha1 checksums. Change `create_checksums()` and `create_zsync_delta()` to accept and process an unspecified amount of files as parameters. Change `create_zsync_delta()` to lower the blocksize when creating a file for the bootstrap image. Change `create_metrics()` to create metrics depending on build mode. Rename `create_temp_pgp_key()` to `create_ephemeral_pgp_key()`. Add `create_ephemeral_codesigning_key()` to create a codesigning key, that is used to sign the netboot artifacts. Change `run_mkarchiso()` to also create an ephemeral codesigning key before running mkarchiso and to run `create_checksums()` and `create_zsync_delta()` with files depending on build mode. .gitlab/ci/build-host.sh: Call `build-inside-vm.sh` using the PROFILE and BUILDMODE environment variables as parameters.
Diffstat (limited to '.gitlab/ci/build-host.sh')
-rwxr-xr-x.gitlab/ci/build-host.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/.gitlab/ci/build-host.sh b/.gitlab/ci/build-host.sh
index 7a15010..3377ba7 100755
--- a/.gitlab/ci/build-host.sh
+++ b/.gitlab/ci/build-host.sh
@@ -146,7 +146,7 @@ function main() {
expect "# " 120
## Start build and copy output to local disk
- send "bash -x ./.gitlab/ci/build-inside-vm.sh ${PROFILE}\n "
+ send "bash -x ./.gitlab/ci/build-inside-vm.sh ${PROFILE} ${BUILDMODE}\n "
expect "# " 2400 # mksquashfs can take a very long time
send "cp -r --preserve=mode,timestamps -- output /mnt/project/tmp/$(basename "${tmpdir}")/\n"
expect "# " 60