create custom docker image for fargo actions
All checks were successful
Unit Tests / Run Tests (push) Successful in 9s
All checks were successful
Unit Tests / Run Tests (push) Successful in 9s
This commit is contained in:
parent
baac17eeff
commit
d15751d37b
3 changed files with 20 additions and 4 deletions
3
.github/test_image/Dockerfile
vendored
Normal file
3
.github/test_image/Dockerfile
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
FROM ghcr.io/gleam-lang/gleam:v1.15.2-erlang
|
||||
|
||||
RUN apt-get update && apt-get install -y nodejs npm && rm -rf /var/lib/apt/lists/*
|
||||
16
.github/test_image/build.sh
vendored
Executable file
16
.github/test_image/build.sh
vendored
Executable file
|
|
@ -0,0 +1,16 @@
|
|||
#!/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"
|
||||
Loading…
Add table
Add a link
Reference in a new issue