Wire Forge-native release infrastructure
Some checks failed
Cache: Publish Nix / Publish Nix Cache (push) Waiting to run
Build Rust / Cargo Test (push) Successful in 4m14s
Build Site / Next.js Build (push) Failing after 6s
Infra: OpenTofu / OpenTofu (grafana) (push) Successful in 5s
Lint Governance / BEP Metadata (push) Successful in 0s
Build: Android / Android Rust Core Stub (push) Failing after 23s
Some checks failed
Cache: Publish Nix / Publish Nix Cache (push) Waiting to run
Build Rust / Cargo Test (push) Successful in 4m14s
Build Site / Next.js Build (push) Failing after 6s
Infra: OpenTofu / OpenTofu (grafana) (push) Successful in 5s
Lint Governance / BEP Metadata (push) Successful in 0s
Build: Android / Android Rust Core Stub (push) Failing after 23s
This commit is contained in:
parent
97c569fb35
commit
002bd382e9
199 changed files with 14268 additions and 185 deletions
41
Scripts/ci/upload-release-storage.sh
Executable file
41
Scripts/ci/upload-release-storage.sh
Executable file
|
|
@ -0,0 +1,41 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
: "${BUILD_NUMBER:?BUILD_NUMBER is required}"
|
||||
|
||||
repo_root="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")/../.." && pwd)"
|
||||
cd "${repo_root}"
|
||||
|
||||
uploaded=0
|
||||
garage_configured=0
|
||||
|
||||
if [[ -n "${BURROW_GARAGE_ENDPOINT:-}" && -n "${AWS_ACCESS_KEY_ID:-}" && -n "${AWS_SECRET_ACCESS_KEY:-}" ]]; then
|
||||
garage_configured=1
|
||||
fi
|
||||
|
||||
if [[ "$garage_configured" == "1" ]]; then
|
||||
Scripts/ci/upload-release-garage.sh
|
||||
uploaded=1
|
||||
elif [[ "${BURROW_RELEASE_REQUIRE_GARAGE:-false}" == "true" ]]; then
|
||||
echo "Garage release upload is required, but BURROW_GARAGE_ENDPOINT or AWS credentials are missing" >&2
|
||||
exit 1
|
||||
else
|
||||
echo "::notice ::Garage release upload not configured; skipping primary S3-compatible target."
|
||||
fi
|
||||
|
||||
if [[ "${BURROW_RELEASE_GCS_BACKUP:-true}" != "false" ]]; then
|
||||
if ! command -v gcloud >/dev/null 2>&1; then
|
||||
echo "gcloud is required for GCS release backup" >&2
|
||||
exit 127
|
||||
fi
|
||||
if ! gcloud auth list --filter=status:ACTIVE --format='value(account)' | grep -q .; then
|
||||
Scripts/ci/google-wif-auth.sh
|
||||
fi
|
||||
Scripts/ci/upload-release-gcs.sh
|
||||
uploaded=1
|
||||
fi
|
||||
|
||||
if [[ "$uploaded" != "1" ]]; then
|
||||
echo "no release storage targets were enabled" >&2
|
||||
exit 1
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue