weather-portal/.github/test_image/build.sh
Travis Shears d15751d37b
All checks were successful
Unit Tests / Run Tests (push) Successful in 9s
create custom docker image for fargo actions
2026-03-23 15:52:35 +01:00

16 lines
456 B
Bash
Executable file

#!/bin/sh
set -e
export AWS_PROFILE=personal
export AWS_REGION=eu-central-1
REPO_NAME="gleam-tester-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"