dropshell-build/publish.sh
Your Name 1da19b9191
All checks were successful
dropshell-build / build (push) Successful in 1m3s
'Generic Commit'
2025-06-03 00:38:14 +12:00

18 lines
454 B
Bash
Executable File

#!/bin/bash
set -euo pipefail
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
# download the sos binary
SOS="${SCRIPT_DIR}/temp/sos"
mkdir -p "${SCRIPT_DIR}/temp"
trap 'rm -rf "${SCRIPT_DIR}/temp"' EXIT
curl -L -o "${SOS}" https://getbin.xyz/sos
chmod +x "${SOS}"
# upload the dropshell-build script
"${SOS}" upload "getbin.xyz" "${SCRIPT_DIR}/Dockerfile.dropshell-build" "Dockerfile.dropshell-build:latest"
echo "Done"