# Builds the Dockerfile at the root for every v* tag and pushes it to this forge's staging registry. # IPCR picks it up from there within a minute and publishes it on IPFS; the forge's page then # lists the exact `image:` line to use. # # Differences from a GitHub-hosted workflow, both needed on this forge: # images: localhost:5000/… the staging registry (no login, no secret) # network=host so buildx's builder can reach that registry name: image on: push: tags: ['v*'] jobs: image: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: docker/metadata-action@v5 id: meta with: images: localhost:5000/${{ github.repository }} tags: | type=semver,pattern={{version}} type=raw,value=latest - uses: docker/setup-buildx-action@v3 with: driver-opts: network=host - uses: docker/build-push-action@v6 with: context: . push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }}