From 01a0db42c1f17f93670840b544ba8aa389bb3da1 Mon Sep 17 00:00:00 2001 From: Alex Date: Sat, 3 May 2025 20:53:07 +1200 Subject: [PATCH] Initial Commits --- .forgejo/workflows/image.yaml | 43 +++++++++++++++++++++++++++++++++++ .gitignore | 36 ++++++++++++++++++++--------- Dockerfile | 9 ++++++++ README.md | 3 ++- renovate.json | 27 ++++++++++++++++++++++ 5 files changed, 106 insertions(+), 12 deletions(-) create mode 100644 .forgejo/workflows/image.yaml create mode 100644 Dockerfile create mode 100644 renovate.json diff --git a/.forgejo/workflows/image.yaml b/.forgejo/workflows/image.yaml new file mode 100644 index 0000000..6e1986c --- /dev/null +++ b/.forgejo/workflows/image.yaml @@ -0,0 +1,43 @@ +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: docker + steps: + - name: Check out the repo + uses: actions/checkout@v4 + + - name: Extract metadata (tags, labels) for Docker + id: meta + uses: docker/metadata-action@v5.6.1 + with: + images: caddy + tags: | + type=schedule + type=ref,event=branch + type=ref,event=pr + type=semver,pattern={{version}} + type=semver,pattern={{major}}.{{minor}} + type=semver,pattern={{major}} + type=sha + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3.9.0 + + - name: Build and push Docker image + id: push + uses: docker/build-push-action@v6.13.0 + with: + context: . + file: ./Dockerfile + push: false + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} \ No newline at end of file diff --git a/.gitignore b/.gitignore index 8c2b884..d4777d2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,14 +1,28 @@ -# ---> VisualStudioCode -.vscode/* -!.vscode/settings.json -!.vscode/tasks.json -!.vscode/launch.json -!.vscode/extensions.json -!.vscode/*.code-snippets +# ---> macOS +# General +.DS_Store +.AppleDouble +.LSOverride -# Local History for Visual Studio Code -.history/ +# Icon must end with two \r +Icon -# Built Visual Studio Code Extensions -*.vsix +# Thumbnails +._* + +# Files that might appear in the root of a volume +.DocumentRevisions-V100 +.fseventsd +.Spotlight-V100 +.TemporaryItems +.Trashes +.VolumeIcon.icns +.com.apple.timemachine.donotpresent + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..d45645e --- /dev/null +++ b/Dockerfile @@ -0,0 +1,9 @@ +FROM caddy:2.9.1-builder-alpine@sha256:77a6376a7f8074e856ffdb339054d28b93bd6cc68c82e34b675b0b39b1a25689 AS builder + +RUN xcaddy build \ + --with github.com/caddy-dns/rfc2136@e50b9f25dd68882c76758446195aca0507be3c05 \ + --with github.com/jasonlovesdoggo/caddy-defender@c7ba3d4f6cdfb76886cf3998cff77eaabe456443 + +FROM caddy:2.9.1-alpine@sha256:b1843ebe13997299e8639d208f1b94e5d849dd0f31047652e62ab56b1ec881a9 + +COPY --from=builder /usr/bin/caddy /usr/bin/caddy \ No newline at end of file diff --git a/README.md b/README.md index cadce82..53f4099 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,3 @@ -# caddy +# caddy-docker-rfc2136 +Build of Caddy for Docker including the RFC2136 Plugin \ No newline at end of file diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000..4ecf721 --- /dev/null +++ b/renovate.json @@ -0,0 +1,27 @@ +{ + "extends": [ + "config:recommended" + ], + "labels": [ + "ready for review" + ], + "ignoreUnstable": true, + "minimumReleaseAge": "3", + "packageRules": [ + { + "matchCategories": [ + "docker", + "github-actions" + ], + "pinDigests": true + }, + { + "matchUpdateTypes": [ + "major" + ], + "labels": [ + "UPDATE-MAJOR" + ] + } + ] +}