new platform engineer agent
This commit is contained in:
24
platform-engineer/build-and-push.sh
Normal file
24
platform-engineer/build-and-push.sh
Normal file
@@ -0,0 +1,24 @@
|
||||
#!/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."
|
||||
Reference in New Issue
Block a user