The builder stage cross-compiles Caddy for the target platform, so no emulation is needed. The module check runs against the amd64 image; PR checks also build arm64. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
32 lines
838 B
YAML
32 lines
838 B
YAML
name: PR Checks
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [main]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
checks:
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: docker:cli
|
|
steps:
|
|
- name: Install Node (for checkout)
|
|
run: apk add --no-cache nodejs
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Set up Docker buildx
|
|
run: |
|
|
docker buildx rm multi 2>/dev/null || true
|
|
docker buildx create --name multi --driver docker-container --use
|
|
|
|
- name: Build
|
|
run: docker buildx build --pull --platform linux/amd64 --tag caddy-desec-docker:check --load .
|
|
|
|
- name: Build arm64
|
|
run: docker buildx build --pull --platform linux/arm64 .
|
|
|
|
- name: Check the deSEC module is built in
|
|
run: docker run --rm caddy-desec-docker:check caddy list-modules | grep -x dns.providers.desec
|