Skip to content

Commit

Permalink
Add Platforms Input (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
DeeAjayi authored Nov 11, 2024
1 parent 9dd87ce commit 9107c3a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ on:
required: false
type: string
default: '.'
platforms:
description: 'Platforms for the image to be built'
required: false
type: string
default: 'linux/amd64,linux/arm64'
enable_scan:
description: 'Enable image scanning'
required: false
Expand Down Expand Up @@ -153,7 +158,7 @@ jobs:
provenance: false
file: ${{ inputs.dockerfile_path }}
context: ${{ inputs.image_context }}
platforms: linux/amd64,linux/arm64
platforms: ${{ inputs.platforms }}
tags: |
${{ env.IMAGE_ARTIFACT_URL }}:${{ inputs.image_tag }}
${{ env.extra_tags }}
Expand Down

0 comments on commit 9107c3a

Please sign in to comment.