Skip to content

Commit

Permalink
Fix: included supported_platforms (#20)
Browse files Browse the repository at this point in the history
* Fix included supported_platforms

* Hopefully we're done here

* ...one more try.
  • Loading branch information
iodeslykos authored Jan 13, 2024
1 parent 0a3c2aa commit 0806d30
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions .github/workflows/build-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,24 +32,27 @@ 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
directory: base/debian
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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 0806d30

Please sign in to comment.