feat: add caddy-git plugin
All checks were successful
Build and Push Docker Image / build (push) Successful in 1m5s

This commit is contained in:
Linloir 2024-10-09 21:18:33 +08:00
parent 84a9714379
commit 4066f53d6d
Signed by: Linloir
GPG Key ID: 20549A3E132D9E9A
2 changed files with 12 additions and 1 deletions

View File

@ -9,7 +9,7 @@ for dir in builds/*/ ; do
folder_name=$(basename $dir)
# Build the Docker image
docker build --platform linux/amd64 -t caddy-$folder_name $dir
docker build --platform linux/amd64,linux/arm64 -t caddy-$folder_name $dir
# Tag the Docker image for pushing to the repository
docker tag caddy-$folder_name linloir/caddy-$folder_name

11
builds/git-dns/Dockerfile Normal file
View File

@ -0,0 +1,11 @@
FROM caddy:builder AS builder
RUN xcaddy build \
--with github.com/caddy-dns/cloudflare \
--with github.com/caddy-dns/dnspod \
--with github.com/caddy-dns/alidns \
--with github.com/greenpau/caddy-git
FROM caddy:latest
COPY --from=builder /usr/bin/caddy /usr/bin/caddy