Skip to content

caddy: 2.9.1 -> 2.10.0 #8

caddy: 2.9.1 -> 2.10.0

caddy: 2.9.1 -> 2.10.0 #8

Workflow file for this run

name: Caddy
on:
push:
branches:
- master
paths:
- caddy.Containerfile
jobs:
build-image:
name: Build Image
runs-on: ubuntu-24.04
permissions:
attestations: write
contents: read
id-token: write
packages: write
steps:
- name: Code checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
sparse-checkout: |
caddy.Containerfile
- name: Setup QEMU
uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3.6.0
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v3.10.0
- name: Login to GitHub Container Registry
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and Push image
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
id: push
env:
# ref; https://docs.docker.com/build/ci/github-actions/reproducible-builds/
SOURCE_DATE_EPOCH: 0
with:
context: .
file: ./caddy.Containerfile
platforms: linux/amd64,linux/arm64
push: true
sbom: true
tags: ghcr.io/caddyserver/gateway:caddy-2.10.0
build-args: |
CADDY_VERSION=2.10.0
CADDY_BUILDER_HASH=sha256:9edca605c07c8b5425d1985b4d4a1796329b11c3eba0b55f938e01916dcd96c8
CADDY_HASH=sha256:30ccf0cb027e1d06cd6e453c04fc1c8eec665629b22ed69602c14c8a0512ead0
- name: Attest
uses: actions/attest-build-provenance@db473fddc028af60658334401dc6fa3ffd8669fd # v2.3.0
id: attest
with:
subject-name: ghcr.io/caddyserver/gateway
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true