- config.json: tipi_version 1->2, version 1.0.0->1.0.1, updated_at bumped; added missing required fields supported_architectures (["amd64"]) and dynamic_config (true) so the app passes schema validation - docker-compose.json: main service image mergedrop:1.0.0 -> mergedrop:1.0.1 - build/build.sh: default IMAGE_TAG 1.0.0 -> 1.0.1; default SOURCE_REPO corrected from stale video-merger.git to vid-merger.git - build/README.md: corrected source repo pointer from video-merger to vid-merger Image git.alexzaw.dev/alexz/mergedrop:1.0.1 is being built from git.alexzaw.dev/alexz/vid-merger @ 9b27376 in a separate process. Deploy chain (appstore update / app update) to be run separately once the image build completes.
38 lines
1.1 KiB
Bash
Executable File
38 lines
1.1 KiB
Bash
Executable File
#!/bin/bash
|
|
# Build and push the MergeDrop Docker image.
|
|
# Clones the source repo (or reuses an existing checkout) and tags/pushes
|
|
# both :latest and the version tag.
|
|
|
|
set -euo pipefail
|
|
|
|
IMAGE_NAME="${IMAGE_NAME:-git.alexzaw.dev/alexz/mergedrop}"
|
|
IMAGE_TAG="${IMAGE_TAG:-1.0.1}"
|
|
SOURCE_REPO="${SOURCE_REPO:-https://git.alexzaw.dev/alexz/vid-merger.git}"
|
|
WORKDIR="${WORKDIR:-/tmp/mergedrop-build}"
|
|
|
|
echo "==> Preparing source at ${WORKDIR}"
|
|
if [[ -d "${WORKDIR}/.git" ]]; then
|
|
git -C "${WORKDIR}" fetch --quiet origin
|
|
git -C "${WORKDIR}" reset --hard --quiet origin/HEAD
|
|
else
|
|
rm -rf "${WORKDIR}"
|
|
git clone --quiet "${SOURCE_REPO}" "${WORKDIR}"
|
|
fi
|
|
|
|
echo "==> Building ${IMAGE_NAME}:${IMAGE_TAG} (and :latest)"
|
|
cd "${WORKDIR}"
|
|
docker build "$@" \
|
|
-t "${IMAGE_NAME}:${IMAGE_TAG}" \
|
|
-t "${IMAGE_NAME}:latest" \
|
|
.
|
|
|
|
echo "==> Pushing ${IMAGE_NAME}:${IMAGE_TAG}"
|
|
docker push "${IMAGE_NAME}:${IMAGE_TAG}"
|
|
echo "==> Pushing ${IMAGE_NAME}:latest"
|
|
docker push "${IMAGE_NAME}:latest"
|
|
|
|
echo ""
|
|
echo "Done. To install on Runtipi:"
|
|
echo " sudo /etc/runtipi/runtipi-cli appstore update"
|
|
echo " sudo /etc/runtipi/runtipi-cli app install mergedrop:runtipi"
|