fix gitea?
Some checks failed
dropshell-build / build (push) Failing after 6m18s

This commit is contained in:
j842
2025-06-10 14:21:39 +12:00
parent 35cb141334
commit 95772be1a5
2 changed files with 23 additions and 1 deletions

View File

@ -2,8 +2,27 @@
set -euo pipefail
die() {
echo "Fatal error:"
echo "$1"
exit 1
}
# check the variables are present
[[ -n $SOS_WRITE_TOKEN ]] || die "SOS_WRITE_TOKEN not specified"
[[ -n $DOCKER_PUSH_TOKEN ]] || die "DOCKER_PUSH_TOKEN not specified"
# Publish gitea.jde.nz/public/dropshell-build-base:latest
docker login -u "anything" -p "${DOCKER_PUSH_TOKEN}" gitea.jde.nz
docker push "gitea.jde.nz/public/dropshell-build-base:latest"
#SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
# # download the sos binary
# SOS="${SCRIPT_DIR}/temp/sos"
# mkdir -p "${SCRIPT_DIR}/temp"