ci: call ci from ci
This commit is contained in:
parent
7db02cd705
commit
8094529d53
28
ci
28
ci
@ -13,22 +13,24 @@ else
|
|||||||
tmux -2 new-session -d ${SESS}
|
tmux -2 new-session -d ${SESS}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
tmux -2 attach-session -t "$NAME"
|
tmux -2 attach-session -t "$NAME" "./ci run"
|
||||||
|
|
||||||
trap ci_error INT TERM
|
trap ci_error INT TERM
|
||||||
|
|
||||||
ci_branch=$(date +"%Y%m%dT%H%M%S%z")
|
if [ "$1" = "run" ]; then
|
||||||
can_sign=0
|
ci_branch=$(date +"%Y%m%dT%H%M%S%z")
|
||||||
|
can_sign=0
|
||||||
|
|
||||||
for i in $(ssh-add -L | awk '{print $NF}'); do
|
for i in $(ssh-add -L | awk '{print $NF}'); do
|
||||||
grep -q $i .allowed_signers && can_sign=1
|
grep -q $i .allowed_signers && can_sign=1
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ $can_sign != 1 ]; then
|
if [ $can_sign != 1 ]; then
|
||||||
echo "Can't find signing key."
|
echo "Can't find signing key."
|
||||||
exit 1
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
git checkout -b "${ci_branch}" || handle_co_fail
|
||||||
|
nix flake update --commit-lock-file || handle_update_fail
|
||||||
|
nix flake check || handle_check_fail
|
||||||
fi
|
fi
|
||||||
|
|
||||||
git checkout -b "${ci_branch}" || handle_co_fail
|
|
||||||
nix flake update --commit-lock-file || handle_update_fail
|
|
||||||
nix flake check || handle_check_fail
|
|
||||||
|
Loading…
Reference in New Issue
Block a user