'Generic Commit'
Some checks failed
dropshell-build / build (push) Failing after 16m48s

This commit is contained in:
Your Name 2025-05-31 21:33:21 +12:00
parent 7706986cef
commit 3f27cbf155
5 changed files with 16 additions and 8 deletions

View File

@ -4,5 +4,5 @@ set -euo pipefail
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
docker build -t gitea.jde.nz/public/dropshell-build:latest -f "${SCRIPT_DIR}/Dockerfile" "${SCRIPT_DIR}"
docker build -t gitea.jde.nz/public/dropshell-build:test -f "${SCRIPT_DIR}/Dockerfile" "${SCRIPT_DIR}"

View File

@ -4,8 +4,8 @@ set -euo pipefail
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
"${SCRIPT_DIR}/build.sh"
"${SCRIPT_DIR}/../sos/sos" upload "getbin.xyz" "dropshell-build" "${SCRIPT_DIR}/src/dropshell-build"
docker tag gitea.jde.nz/public/dropshell-build:test gitea.jde.nz/public/dropshell-build:latest
docker push gitea.jde.nz/public/dropshell-build:latest

View File

@ -212,10 +212,15 @@ function buildspawn() {
exit 1
fi
echo "Using Docker Buildchain."
TAG="latest"
if [ -n "$DROPSHELL_BUILD_TAG" ]; then
TAG=":$DROPSHELL_BUILD_TAG"
fi
echo "Using Docker Buildchain with tag: $TAG"
docker run --rm \
-u "$(id -u)":"$(id -g)" \
-v "$BUILD_DIR":/app \
gitea.jde.nz/public/dropshell-build:latest
"gitea.jde.nz/public/dropshell-build:${TAG}"
else
echo "Using local native buildchain"
build "$BUILD_DIR"

View File

@ -6,9 +6,7 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
echo "Testing dropshell-build"
"${SCRIPT_DIR}/build.sh"
"${SCRIPT_DIR}/src/dropshell-build" "${SCRIPT_DIR}/test"
DROPSHELL_BUILD_TAG="test" "${SCRIPT_DIR}/src/dropshell-build" "${SCRIPT_DIR}/test"
"${SCRIPT_DIR}/test/output/ipdemo.x86_64"

View File

@ -21,7 +21,12 @@ Usage:
Example:
sos upload tools.dropshell.app file:latest ./file.txt
This will upload the file to the server, and return the download URL
This will upload the file to the server, and return the download URL.
Environment variables:
SOS_WRITE_TOKEN: The write token to use for the upload. If not set,
the script will look in $HOME/.config/sos/write_token.txt.
EOF
exit 0
}