chore: update caddy and ci
This commit is contained in:
parent
f9500b3c4f
commit
e83c7e5733
22
.drone.yml
22
.drone.yml
|
@ -1,22 +0,0 @@
|
||||||
---
|
|
||||||
kind: pipeline
|
|
||||||
type: docker
|
|
||||||
name: caddy-build-deploy
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: build-and-push-image
|
|
||||||
image: plugins/docker
|
|
||||||
volumes:
|
|
||||||
- name: dockersock
|
|
||||||
path: /var/run/docker.sock
|
|
||||||
settings:
|
|
||||||
username: meatbag
|
|
||||||
password:
|
|
||||||
from_secret: registry_password
|
|
||||||
repo: meatbag/caddy
|
|
||||||
tags: latest
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
|
|
||||||
trigger:
|
|
||||||
branch:
|
|
||||||
- main
|
|
10
.gitea/workflows/build.yaml
Normal file
10
.gitea/workflows/build.yaml
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
name: build
|
||||||
|
run-name: ${{ gitea.actor }} is building caddy
|
||||||
|
on: [push]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
run: |
|
||||||
|
echo "${{ secrets.MEATBAG_REGISTRY_TOKEN }}" | podman login --username registry --password-stdin registry.meatbag.se
|
||||||
|
podman build -t meatbag/caddy:latest .
|
||||||
|
podman push meatbag/caddy
|
|
@ -1,4 +1,4 @@
|
||||||
FROM caddy:2.6.4-builder AS builder
|
FROM caddy:2.7.5-builder AS builder
|
||||||
|
|
||||||
#
|
#
|
||||||
## build with additional plugins
|
## build with additional plugins
|
||||||
|
@ -8,6 +8,6 @@ RUN xcaddy build \
|
||||||
--with github.com/mholt/caddy-dynamicdns \
|
--with github.com/mholt/caddy-dynamicdns \
|
||||||
--with github.com/greenpau/caddy-security
|
--with github.com/greenpau/caddy-security
|
||||||
|
|
||||||
FROM caddy:2.6.4
|
FROM caddy:2.7.5
|
||||||
|
|
||||||
COPY --from=builder /usr/bin/caddy /usr/bin/caddy
|
COPY --from=builder /usr/bin/caddy /usr/bin/caddy
|
||||||
|
|
Loading…
Reference in a new issue