From 1c82297760b1eb984a916a7e3931603474de804c Mon Sep 17 00:00:00 2001 From: Kyle Harding Date: Tue, 30 Jan 2024 16:22:05 -0500 Subject: [PATCH] Build and publish helper images with Flowzone Rather than build helper images on demand, we will publish them to ghcr.io with every revision of this project. Change-type: minor Signed-off-by: Kyle Harding --- .github/workflows/flowzone.yml | 4 ++++ docker-bake.hcl | 35 ++++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 docker-bake.hcl diff --git a/.github/workflows/flowzone.yml b/.github/workflows/flowzone.yml index 3ed107163..158a9b001 100644 --- a/.github/workflows/flowzone.yml +++ b/.github/workflows/flowzone.yml @@ -26,3 +26,7 @@ jobs: github.event_name == 'pull_request_target' ) secrets: inherit + with: + docker_images: | + ghcr.io/balena-os/balena-yocto-scripts + bake_targets: yocto-build-env,block-build-env,balena-push-env,generate-ami-env diff --git a/docker-bake.hcl b/docker-bake.hcl new file mode 100644 index 000000000..1ca0c23e1 --- /dev/null +++ b/docker-bake.hcl @@ -0,0 +1,35 @@ +target "yocto-build-env" { + context = "automation" + dockerfile = "Dockerfile_yocto-build-env" + platforms = [ + "linux/amd64", + // "linux/arm64" + ] +} + +target "block-build-env" { + context = "automation" + dockerfile = "Dockerfile_yocto-block-build-env" + platforms = [ + "linux/amd64", + // "linux/arm64" + ] +} + +target "balena-push-env" { + context = "automation" + dockerfile = "Dockerfile_balena-push-env" + platforms = [ + "linux/amd64", + // "linux/arm64" + ] +} + +target "generate-ami-env" { + context = "automation" + dockerfile = "Dockerfile_balena-generate-ami-env" + platforms = [ + "linux/amd64", + // "linux/arm64" + ] +}