dockerize event proxy go app

This commit is contained in:
Travis Shears 2025-12-25 11:34:42 +01:00
parent aa5a4eda05
commit 83e3765247
Signed by: travisshears
GPG key ID: CB9BF1910F3F7469
5 changed files with 63 additions and 8 deletions

16
event_proxy/build.sh Executable file
View file

@ -0,0 +1,16 @@
#!/bin/sh
set -e
export AWS_PROFILE=personal
export AWS_REGION=eu-central-1
REPO_NAME="homeassistant-event-proxy-homelabstack"
if ! aws ecr describe-repositories --repository-names "$REPO_NAME" >/dev/null 2>&1; then
aws ecr create-repository --repository-name "$REPO_NAME"
fi
docker buildx build --platform linux/amd64,linux/arm64 -t "853019563312.dkr.ecr.eu-central-1.amazonaws.com/$REPO_NAME:latest" --push .
echo "Docker image built and pushed to AWS ECR"