image.yml - hugo - [fork] hugo port for 9front
 (HTM) git clone https://git.drkhsh.at/hugo.git
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Submodules
 (DIR) README
 (DIR) LICENSE
       ---
       image.yml (1425B)
       ---
            1 name: Build Docker image
            2 
            3 on:
            4   release:
            5     types: [published]
            6   pull_request:
            7 permissions:
            8   packages: write
            9 
           10 env:
           11   REGISTRY_IMAGE: ghcr.io/gohugoio/hugo
           12 
           13 jobs:
           14   build:
           15     runs-on: ubuntu-latest
           16 
           17     steps:
           18       - name: Checkout
           19         uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
           20 
           21       - name: Docker meta
           22         id: meta
           23         uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 # v5.5.1
           24         with:
           25           images: ${{ env.REGISTRY_IMAGE }}
           26 
           27       - name: Set up Docker Buildx
           28         uses: docker/setup-buildx-action@988b5a0280414f521da01fcc63a27aeeb4b104db # v3.6.1
           29 
           30       - name: Login to GHCR
           31         # Login is only needed when the image is pushed
           32         uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
           33         with:
           34           registry: ghcr.io
           35           username: ${{ github.repository_owner }}
           36           password: ${{ secrets.GITHUB_TOKEN }}
           37 
           38       - name: Build and push
           39         id: build
           40         uses: docker/build-push-action@16ebe778df0e7752d2cfcbd924afdbbd89c1a755 # v6.6.1
           41         with:
           42           context: .
           43           provenance: mode=max
           44           sbom: true
           45           push: ${{ github.event_name != 'pull_request' }}
           46           platforms: linux/amd64,linux/arm64
           47           tags: ${{ steps.meta.outputs.tags }}
           48           labels: ${{ steps.meta.outputs.labels }}
           49