fix: pipefail to catch errors
Some checks failed
/ deploy (push) Failing after 2m40s

This commit is contained in:
ange 2024-12-22 07:05:23 +00:00
parent bf3cb015f0
commit 6fe60b9e57
Signed by: ange
GPG Key ID: 9E0C4157BB7BEB1D
3 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,5 @@
#!/bin/bash -e
set -o pipefail
function get_token() {
kubectl exec statefulset/app -- gitea admin user generate-access-token \
@ -23,8 +24,6 @@ if [ -z "$passwd" ]; then
--password "$passwd"
fi
set -x
opts=()
[ -n "$scopes" ] && opts+=(
--from-literal=token="$(kgseckey "$secret" token || get_token)"

View File

@ -1,4 +1,5 @@
#!/bin/bash -e
set -o pipefail
export NB_REPLICAS=1

View File

@ -1,4 +1,5 @@
#!/bin/bash -e
set -o pipefail
# TODO: 3
export NB_REPLICAS=1