
Some checks failed
Build-Test-Publish / build (linux/amd64) (push) Failing after 1m28s
Build-Test-Publish / build (linux/arm64) (push) Failing after 2m32s
Build-Test-Publish / test-install-from-scratch (linux/amd64) (push) Has been skipped
Build-Test-Publish / test-install-from-scratch (linux/arm64) (push) Has been skipped
29 lines
742 B
Bash
Executable File
29 lines
742 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
|
|
PROJECT="dehydrate"
|
|
|
|
export CMAKE_BUILD_TYPE="Debug"
|
|
|
|
rm -rf "${SCRIPT_DIR}/output"
|
|
mkdir -p "${SCRIPT_DIR}/output"
|
|
|
|
# make sure we have the latest base image.
|
|
docker pull gitea.jde.nz/public/dropshell-build-base:latest
|
|
|
|
# Build with or without cache based on NO_CACHE environment variable
|
|
CACHE_FLAG=""
|
|
if [ "${NO_CACHE:-false}" = "true" ]; then
|
|
CACHE_FLAG="--no-cache"
|
|
fi
|
|
|
|
docker build \
|
|
${CACHE_FLAG} \
|
|
-t "${PROJECT}-build" \
|
|
-f "${SCRIPT_DIR}/Dockerfile.dropshell-build" \
|
|
--build-arg PROJECT="${PROJECT}" \
|
|
--build-arg CMAKE_BUILD_TYPE="${CMAKE_BUILD_TYPE}" \
|
|
--output "${SCRIPT_DIR}/output" \
|
|
"${SCRIPT_DIR}" |