Skip to content

Update action to support multiple parameter changes #9

Update action to support multiple parameter changes

Update action to support multiple parameter changes #9

Workflow file for this run

name: Build and publish docker image
on:
workflow_dispatch:
push:
branches: [main]
concurrency: publish
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 5
permissions:
contents: read
packages: write
id-token: write
attestations: write
steps:
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}
- uses: docker/build-push-action@v6
id: push
with:
push: true
platforms: |
linux/arm64
linux/amd64
tags: |
ghcr.io/${{ github.repository }}:latest
outputs: type=image,oci-mediatypes=true,compression=zstd,compression-level=6,force-compression=true
cache-from: type=gha
cache-to: type=gha,mode=max
- uses: actions/attest-build-provenance@v1
with:
subject-name: ghcr.io/${{ github.repository }}
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true