Skip to content

Commit

Permalink
add option to set platform/arch of images
Browse files Browse the repository at this point in the history
  • Loading branch information
bryopsida committed Aug 31, 2024
1 parent 1b0c9d2 commit f1b9f6b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/oci-build-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ name: Build Image
on:
workflow_call:
inputs:
platforms:
type: 'string'
required: false
default: 'linux/amd64,linux/arm64'
description: 'A csv list of platforms/archs to create images for'
runs-on:
type: 'string'
required: false
Expand Down Expand Up @@ -185,7 +190,7 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:buildcache
cache-to: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:buildcache,mode=max
platforms: linux/amd64,linux/arm64
platforms: ${{ inputs.platforms}}
- name: Sign the published Docker image
if: ${{ github.event_name != 'pull_request' }}
env:
Expand Down

0 comments on commit f1b9f6b

Please sign in to comment.