'Generic Commit'
This commit is contained in:
parent
7715d69352
commit
3af2f6c537
@ -10,6 +10,6 @@ ARCH=$(uname -m)
|
|||||||
|
|
||||||
# Build multi-platform image and push it
|
# Build multi-platform image and push it
|
||||||
docker build \
|
docker build \
|
||||||
-t "gitea.jde.nz/public/dropshell-build-base:test" \
|
-t "dropshell-build-base:test" \
|
||||||
-f "${SCRIPT_DIR}/Dockerfile.dropshell-build-base" \
|
-f "${SCRIPT_DIR}/Dockerfile.dropshell-build-base" \
|
||||||
${SCRIPT_DIR}
|
${SCRIPT_DIR}
|
||||||
|
@ -10,7 +10,7 @@ ARCH=$(uname -m)
|
|||||||
|
|
||||||
echo "Publishing dropshell-build-base:test as :latest-${ARCH}..."
|
echo "Publishing dropshell-build-base:test as :latest-${ARCH}..."
|
||||||
|
|
||||||
docker tag gitea.jde.nz/public/dropshell-build-base:test gitea.jde.nz/public/dropshell-build-base:latest-${ARCH}
|
docker tag dropshell-build-base:test gitea.jde.nz/public/dropshell-build-base:latest-${ARCH}
|
||||||
docker push gitea.jde.nz/public/dropshell-build-base:latest-${ARCH}
|
docker push gitea.jde.nz/public/dropshell-build-base:latest-${ARCH}
|
||||||
|
|
||||||
echo "Successfully pushed dropshell-build-base:latest-${ARCH}"
|
echo "Successfully pushed dropshell-build-base:latest-${ARCH}"
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
ARG IMAGE_TAG
|
ARG IMAGE_TAG
|
||||||
FROM gitea.jde.nz/public/dropshell-build-base:test AS builder
|
FROM dropshell-build-base:test AS builder
|
||||||
|
|
||||||
ARG PROJECT
|
ARG PROJECT
|
||||||
ARG CMAKE_BUILD_TYPE=Debug
|
ARG CMAKE_BUILD_TYPE=Debug
|
||||||
|
@ -11,13 +11,9 @@ output_dir="${SCRIPT_DIR}/output"
|
|||||||
# Function to build a project
|
# Function to build a project
|
||||||
build_project() {
|
build_project() {
|
||||||
local project="$1"
|
local project="$1"
|
||||||
local build_cmd=(docker build)
|
|
||||||
|
|
||||||
|
docker build \
|
||||||
local tag="${project}-build"
|
-t "${project}-build" \
|
||||||
|
|
||||||
"${build_cmd[@]}" \
|
|
||||||
-t "${tag}" \
|
|
||||||
-f "${SCRIPT_DIR}/Dockerfile.test-build" \
|
-f "${SCRIPT_DIR}/Dockerfile.test-build" \
|
||||||
--build-arg PROJECT="${project}" \
|
--build-arg PROJECT="${project}" \
|
||||||
--build-arg CMAKE_BUILD_TYPE="${CMAKE_BUILD_TYPE}" \
|
--build-arg CMAKE_BUILD_TYPE="${CMAKE_BUILD_TYPE}" \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user