mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-08 05:26:58 +02:00
More space can be saved by removing things that get overwritten on the next job run, but they are used after this script runs (e.g. for fingerprinting). Drop the cleanup from these scripts and move it all to the post-build pipeline stage.
23 lines
486 B
Bash
23 lines
486 B
Bash
#!/bin/bash -ex
|
|
|
|
enter() {
|
|
bin/cork enter --bind-gpg-agent=false -- "$@"
|
|
}
|
|
|
|
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 sudo emerge -uv --jobs=2 catalyst
|
|
enter sudo ${S}/bootstrap_sdk \
|
|
--sign="${SIGNING_USER}" \
|
|
--sign_digests="${SIGNING_USER}" \
|
|
--upload_root="${UPLOAD_ROOT}" \
|
|
--upload
|