All checks were successful
Check meta / check_dns (pull_request) Successful in 15s
Check workflows / check_workflows (pull_request) Successful in 16s
Check meta / check_meta (pull_request) Successful in 18s
Build all the nodes / netaccess01 (pull_request) Successful in 20s
Build all the nodes / ap01 (pull_request) Successful in 32s
Build all the nodes / netcore01 (pull_request) Successful in 19s
Build all the nodes / netcore02 (pull_request) Successful in 19s
Build all the nodes / hypervisor02 (pull_request) Successful in 1m26s
Build all the nodes / geo02 (pull_request) Successful in 1m27s
Build all the nodes / hypervisor01 (pull_request) Successful in 1m45s
Build all the nodes / build01 (pull_request) Successful in 1m50s
Build all the nodes / geo01 (pull_request) Successful in 1m51s
Build all the nodes / bridge01 (pull_request) Successful in 1m52s
Build all the nodes / tower01 (pull_request) Successful in 1m31s
Build all the nodes / hypervisor03 (pull_request) Successful in 2m10s
Build all the nodes / rescue01 (pull_request) Successful in 1m54s
Build all the nodes / vault01 (pull_request) Successful in 1m48s
Build all the nodes / compute01 (pull_request) Successful in 2m26s
Build all the nodes / storage01 (pull_request) Successful in 2m5s
Build the shell / build-shell (pull_request) Successful in 40s
Run pre-commit on all files / pre-commit (pull_request) Successful in 41s
Build all the nodes / web01 (pull_request) Successful in 2m16s
Build all the nodes / web02 (pull_request) Successful in 1m45s
Build all the nodes / web03 (pull_request) Successful in 1m45s
Build all the nodes / netaccess01 (push) Successful in 21s
Build all the nodes / netcore02 (push) Successful in 21s
Build all the nodes / ap01 (push) Successful in 33s
Build all the nodes / netcore01 (push) Successful in 33s
Build all the nodes / geo02 (push) Successful in 1m31s
Build all the nodes / rescue01 (push) Successful in 1m36s
Build all the nodes / geo01 (push) Successful in 1m47s
Build all the nodes / build01 (push) Successful in 1m48s
Build all the nodes / bridge01 (push) Successful in 1m50s
Build all the nodes / storage01 (push) Successful in 1m56s
Build all the nodes / hypervisor03 (push) Successful in 1m57s
Build all the nodes / hypervisor01 (push) Successful in 1m58s
Build all the nodes / tower01 (push) Successful in 1m59s
Build all the nodes / hypervisor02 (push) Successful in 2m1s
Build all the nodes / vault01 (push) Successful in 2m1s
Build all the nodes / web02 (push) Successful in 1m37s
Run pre-commit on all files / pre-commit (push) Successful in 31s
Build the shell / build-shell (push) Successful in 43s
Build all the nodes / web03 (push) Successful in 1m45s
Build all the nodes / compute01 (push) Successful in 2m27s
Build all the nodes / web01 (push) Successful in 2m9s
31 lines
990 B
Bash
31 lines
990 B
Bash
#!/usr/bin/env bash
|
|
#
|
|
# Copyright: Jade Lovelace <lix@jade.fyi> 2024
|
|
|
|
doChecks() {
|
|
# creates refs in the refs/prefetch/remotes/origin namespace
|
|
echo "Prefetching repo changes..." >&2
|
|
git fetch --quiet --prefetch --no-write-fetch-head origin
|
|
|
|
diffs=$(git rev-list --left-right --count HEAD...refs/prefetch/remotes/origin/main)
|
|
only_in_local=$(echo "$diffs" | cut -f1)
|
|
only_in_main=$(echo "$diffs" | cut -f2)
|
|
|
|
if [[ $only_in_main -gt 0 && ! -v $FORCE_DEPLOY_DGNUM ]]; then
|
|
echo >&2
|
|
echo "Attempting to deploy when main has $only_in_main commits not in your branch!" >&2
|
|
echo "This will probably revert someone's changes. Consider merging them." >&2
|
|
echo "If you really mean it, set the environment variable FORCE_DEPLOY_DGNUM" >&2
|
|
exit 1
|
|
fi
|
|
|
|
if [[ $only_in_local -gt 0 ]]; then
|
|
echo "You have $only_in_local commits not yet pushed to main. Reminder to push them after :)" >&2
|
|
fi
|
|
}
|
|
|
|
if [[ $1 == 'apply' ]]; then
|
|
doChecks
|
|
fi
|
|
|
|
exec @colmena@ --nix-option nix-path "" "$@"
|