Skip to content

Commit

Permalink
fix: add platforms to build-images-worfklow
Browse files Browse the repository at this point in the history
  • Loading branch information
jodevsa committed May 13, 2023
1 parent a3ec26b commit eaed2ee
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/build-images-workflow.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
name: Build Docker Images
env:
TARGET_PLATFORMS: linux/amd64,linux/arm64
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

Expand All @@ -19,7 +18,11 @@ on:
set_new_images_as_latest:
required: true
type: boolean

platforms:
description: 'Docker image platforms'
required: true
default: 'linux/amd64, linux/arm64'
type: string


permissions:
Expand Down Expand Up @@ -77,7 +80,7 @@ jobs:
with:
context: .
file: images/${{ matrix.image }}/Dockerfile
platforms: ${{ env.TARGET_PLATFORMS }}
platforms: ${{ inputs.platforms }}
push: ${{ inputs.push }}
tags: ${{ steps.image-meta.outputs.tags }}
labels: ${{ steps.image-meta.outputs.labels }}
8 changes: 5 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,13 @@ jobs:

build-images:
needs: [generate-next-semantic-version]
uses: "./.github/workflows/build-images-workflow.yaml"
uses: ./.github/workflows/build-images-workflow.yaml
with:
set_new_images_as_latest: false
set_new_images_as_latest: true
push: true
new_images_tag: ${{needs.generate-next-semantic-version.outputs.version}}
ref: main
ref: ${{ github.sha }}
platforms: "linux/amd64, linux/arm64"

release:
needs: [build-images]
Expand All @@ -42,6 +43,7 @@ jobs:
name: Checkout repository
with:
submodules: true
ref: ${{ github.sha }}

- name: semantic-release
env:
Expand Down

0 comments on commit eaed2ee

Please sign in to comment.