Skip to content

chore(deps): update caddy:2.9.1-builder-alpine docker digest to 11739… #36

chore(deps): update caddy:2.9.1-builder-alpine docker digest to 11739…

chore(deps): update caddy:2.9.1-builder-alpine docker digest to 11739… #36

Workflow file for this run

name: build image
on:
workflow_dispatch:
push:
branches:
- main
paths:
- Dockerfile
permissions:
contents: read
packages: write
env:
IMAGE_NAME: ghcr.io/${{ github.repository }}
PLATFORMS: linux/amd64,linux/arm/v7
jobs:
build-image:
runs-on: ubuntu-24.04
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Retrieve image version
run: echo "IMAGE_VERSION=$(head -1 Dockerfile | grep -oP '(?<=caddy:).*?(?=-builder)')" >> $GITHUB_ENV
- name: Generate image metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.IMAGE_NAME }}
tags: |
type=semver,pattern={{version}},value=${{ env.IMAGE_VERSION }}
type=semver,pattern={{major}}.{{minor}},value=${{ env.IMAGE_VERSION }}
type=semver,pattern={{major}},value=${{ env.IMAGE_VERSION }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and Push
uses: docker/build-push-action@v6
with:
platforms: ${{ env.PLATFORMS }}
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}