#!/usr/bin/env bash # Build the development Backend image; Agent images consume Linux native packages. set -euo pipefail [[ "${1:-}" == backend && "${2:-amd64}" == amd64 ]] || { echo 'usage: build-dev-image.sh backend [amd64]' >&2; exit 2; } [[ "${CI_PIPELINE_EVENT:-}" == push && "${CI_COMMIT_BRANCH:-}" == main && "${CI_COMMIT_MESSAGE:-}" == *'[CI]'* ]] || exit 2 root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" source "$root/ci/version.sh" registry="${ZOT_REGISTRY:-registry.oeo.one}" export BUILDAH_HOME=/home/justme/woodpecker/buildah-home/dev-image-build-noble-aot-v1-backend-amd64 export ZOT_IMAGE_REPOSITORY="$registry/moshiro-dev/moshiro-backend" export IMAGE_TAGS="latest,$MOSHIRO_VERSION" IMAGE_PUBLISH=true export MOSHIRO_PUSH_GATE="$root/ci/wait-for-checks.sh" exec python3 "$root/ci/run-with-timeout.py" 1800 bash "$root/ci/release-linux.sh" amd64 backend