caddy/.forgejo/workflows/build.yaml
Renovate Bot 1669d5f18a
All checks were successful
renovate/stability-days Updates have met minimum release age requirement
Update all non-major dependencies
2025-06-16 13:00:15 +00:00

48 lines
No EOL
1.3 KiB
YAML

name: Build and Push Updated Images
run-name: Build and Push Updated Images 🚀
on:
push:
branches:
- main
paths:
- Dockerfile
workflow_dispatch:
jobs:
build-image:
runs-on: ubuntu-24.04
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Login to registery
uses: docker/login-action@v3
with:
registry: git.oooo.nz
username: ${{ github.actor }}
password: ${{ secrets.PUSH_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5.7.0
with:
images: docker.io/library/caddy:latest
tags: |
# set latest tag for default branch
type=raw,value=latest,enable={{is_default_branch}}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3.11.0
- name: Build and push Docker image 🫙
id: push
uses: docker/build-push-action@v6.18.0
with:
context: .
push: true
tags: |
git.oooo.nz/alex/caddy:latest
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64,linux/arm64
secrets: |
GIT_AUTH_TOKEN=${{ secrets.PUSH_TOKEN }}