From 0806d30092f06d9d45750ea99cb0e1345204ad18 Mon Sep 17 00:00:00 2001 From: iodeslykos <42@iodeslykos.com> Date: Fri, 12 Jan 2024 22:15:49 -0700 Subject: [PATCH] Fix: included supported_platforms (#20) * Fix included supported_platforms * Hopefully we're done here * ...one more try. --- .github/workflows/build-images.yml | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build-images.yml b/.github/workflows/build-images.yml index a12238b..3d921cc 100644 --- a/.github/workflows/build-images.yml +++ b/.github/workflows/build-images.yml @@ -32,11 +32,16 @@ jobs: directory: base/al2023 image_tags: ${{ github.repository_owner }}/al2023:latest description: "Amazon Linux 2023" + supported_platforms: + - linux/amd64 + - linux/arm64 - dockerfile: base/alpine/Dockerfile directory: base/alpine image_tags: ${{ github.repository_owner }}/alpine:latest description: "Alpine Linux" supported_platforms: + - linux/amd64 + - linux/arm64 - linux/arm/v7 - linux/arm/v8 - dockerfile: base/debian/Dockerfile @@ -44,12 +49,10 @@ jobs: image_tags: ${{ github.repository_owner }}/debian:latest description: "Debian Linux (Slim)" supported_platforms: + - linux/amd64 + - linux/arm64 - linux/arm/v7 - linux/arm/v8 - include: - - images.supported_platforms: - - linux/amd64 - - linux/arm64 outputs: digests: ${{ steps.build-push-image.outputs.digest }} steps: @@ -102,20 +105,21 @@ jobs: matrix: images: - dockerfile: tools/opentofu/Dockerfile - directory: tools/opentofu/Dockerfile + directory: tools/opentofu image_tags: ${{ github.repository_owner }}/opentofu:latest description: "OpenTofu is an open source IaC tool that allows management of infrastructure as code." supported_platforms: + - linux/amd64 + - linux/arm64 - linux/arm/v7 - linux/arm/v8 - dockerfile: tools/kubectl/Dockerfile - directory: tools/kubectl/Dockerfile + directory: tools/kubectl image_tags: ${{ github.repository_owner }}/kubectl:latest description: "Kubectl is a CLI tool for running commands against Kubernetes clusters." - include: - - images.supported_platforms: - - linux/amd64 - - linux/arm64 + supported_platforms: + - linux/amd64 + - linux/arm64 outputs: digests: ${{ steps.push-image.outputs.digest }} steps: @@ -145,7 +149,7 @@ jobs: id: push-image uses: docker/build-push-action@v5 with: - context: + context: ${{ matrix.images.directory }} file: ${{ matrix.images.dockerfile }} push: ${{ env.PUSH_IMAGES}} provenance: false