mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-08 13:36:58 +02:00
We are going to restore the split-script setup from the old Jenkins server. This ensures that the each version's release process is actually running with scripts in the correct release branch. It also allows branching the VM format lists. Note that the scripts added here only cover the currently active jobs in the main build pipeline. There is no reason to add other jobs, since they are mostly just running a single command using a mantle binary from its master branch. The scripts in this repository pick up after Jenkins has set up an environment with all parameters and credentials defined, and an SDK was prepared and validated.
27 lines
610 B
Bash
27 lines
610 B
Bash
#!/bin/bash -ex
|
|
|
|
enter() {
|
|
bin/cork enter --experimental -- "$@"
|
|
}
|
|
|
|
source .repo/manifests/version.txt
|
|
export COREOS_BUILD_ID
|
|
|
|
# Set up GPG for signing uploads.
|
|
gpg --import "${GPG_SECRET_KEY_FILE}"
|
|
|
|
# Wipe all of catalyst.
|
|
sudo rm -rf src/build
|
|
|
|
S=/mnt/host/source/src/scripts
|
|
enter ${S}/update_chroot
|
|
enter sudo emerge -uv --jobs=2 catalyst
|
|
enter sudo ${S}/bootstrap_sdk \
|
|
--sign="${SIGNING_USER}" \
|
|
--sign_digests="${SIGNING_USER}" \
|
|
--upload_root="${UPLOAD_ROOT}" \
|
|
--upload
|
|
|
|
# Free some disk space only on success to allow debugging failures.
|
|
sudo rm -rf src/build/catalyst/builds
|