25 lines
678 B
Bash
25 lines
678 B
Bash
#!/usr/bin/env bash
|
|
# Build & push the derived Hermes image (kubectl + helm) to the Gitea registry.
|
|
#
|
|
# Run this on a machine with docker + access to git.rogi.casa:
|
|
# ./platform-engineer/build-and-push.sh
|
|
#
|
|
# Prereqs:
|
|
# - docker login git.rogi.casa (use your Gitea username + access token)
|
|
set -euo pipefail
|
|
|
|
REGISTRY="git.rogi.casa"
|
|
REPO="roger/hermes-agent"
|
|
TAG="${TAG:-v1.35-1}"
|
|
IMAGE="${REGISTRY}/${REPO}:${TAG}"
|
|
|
|
cd "$(dirname "$0")"
|
|
|
|
echo "==> Building ${IMAGE}"
|
|
docker build --platform linux/amd64 -t "${IMAGE}" -f dockerfile .
|
|
|
|
echo "==> Pushing ${IMAGE}"
|
|
docker push "${IMAGE}"
|
|
|
|
echo "==> Done. Update platform-engineer/deployment.yaml image: if you changed TAG."
|