This commit is contained in:
parent
7706986cef
commit
3f27cbf155
@ -4,5 +4,5 @@ set -euo pipefail
|
|||||||
|
|
||||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
|
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}"
|
||||||
|
|
||||||
|
@ -4,8 +4,8 @@ set -euo pipefail
|
|||||||
|
|
||||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
|
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"
|
"${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
|
docker push gitea.jde.nz/public/dropshell-build:latest
|
||||||
|
@ -212,10 +212,15 @@ function buildspawn() {
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
echo "Using Docker Buildchain."
|
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 \
|
docker run --rm \
|
||||||
-u "$(id -u)":"$(id -g)" \
|
-u "$(id -u)":"$(id -g)" \
|
||||||
-v "$BUILD_DIR":/app \
|
-v "$BUILD_DIR":/app \
|
||||||
gitea.jde.nz/public/dropshell-build:latest
|
"gitea.jde.nz/public/dropshell-build:${TAG}"
|
||||||
else
|
else
|
||||||
echo "Using local native buildchain"
|
echo "Using local native buildchain"
|
||||||
build "$BUILD_DIR"
|
build "$BUILD_DIR"
|
||||||
|
@ -6,9 +6,7 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
|
|||||||
|
|
||||||
echo "Testing dropshell-build"
|
echo "Testing dropshell-build"
|
||||||
|
|
||||||
"${SCRIPT_DIR}/build.sh"
|
DROPSHELL_BUILD_TAG="test" "${SCRIPT_DIR}/src/dropshell-build" "${SCRIPT_DIR}/test"
|
||||||
|
|
||||||
"${SCRIPT_DIR}/src/dropshell-build" "${SCRIPT_DIR}/test"
|
|
||||||
|
|
||||||
"${SCRIPT_DIR}/test/output/ipdemo.x86_64"
|
"${SCRIPT_DIR}/test/output/ipdemo.x86_64"
|
||||||
|
|
||||||
|
7
sos/sos
7
sos/sos
@ -21,7 +21,12 @@ Usage:
|
|||||||
Example:
|
Example:
|
||||||
sos upload tools.dropshell.app file:latest ./file.txt
|
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
|
EOF
|
||||||
exit 0
|
exit 0
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user