Skip to content

docker: Split caddy and mediawiki image #3

docker: Split caddy and mediawiki image

docker: Split caddy and mediawiki image #3

Workflow file for this run

name: 'Docker: caddy'
env:
TAG: '1.0.0'
on:
push:
paths:
- 'dockers/caddy/**'
- .github/workflows/docker-caddy.yml
pull_request:
paths:
- 'dockers/caddy/**'
- .github/workflows/docker-caddy.yml
workflow_dispatch:
jobs:
docker-image:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
if: github.repository_owner == 'femiwiki' && github.ref == 'refs/heads/main'
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v5
with:
context: '{{ defaultContext }}:dockers/caddy'
platforms: linux/amd64,linux/arm64
cache-from: ghcr.io/femiwiki/caddy:latest
load: false
push: ${{ github.repository_owner == 'femiwiki' && github.ref == 'refs/heads/main' }}
tags: |
ghcr.io/femiwiki/caddy:latest
ghcr.io/femiwiki/caddy:${{ env.TAG }}