ci test
This commit is contained in:
parent
82fa4064ca
commit
a295879d6e
2 changed files with 34 additions and 0 deletions
18
.woodpecker.yml
Normal file
18
.woodpecker.yml
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
pipeline:
|
||||||
|
build:
|
||||||
|
image: docker:latest
|
||||||
|
volumes:
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
commands:
|
||||||
|
- docker build -t codebreaker/caddy-keydb:latest .
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
image: docker:latest
|
||||||
|
volumes:
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
commands:
|
||||||
|
- docker pull codebreaker/caddy-keydb:latest
|
||||||
|
- docker stop caddy-extension || true
|
||||||
|
- docker rm caddy-extension || true
|
||||||
|
- docker run -d --name caddy-extension -p 80:80 codebreaker/caddy-keydb:latest
|
||||||
|
|
16
Dockerfile
Normal file
16
Dockerfile
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
# Dockerfile
|
||||||
|
FROM caddy:builder AS builder
|
||||||
|
|
||||||
|
# Install xcaddy
|
||||||
|
RUN xcaddy build --with <your-plugin-repo-url>
|
||||||
|
|
||||||
|
FROM caddy:latest
|
||||||
|
|
||||||
|
# Copy the built Caddy binary
|
||||||
|
COPY --from=builder /usr/bin/caddy /usr/bin/caddy
|
||||||
|
|
||||||
|
# Copy your Caddyfile
|
||||||
|
COPY Caddyfile /etc/caddy/Caddyfile
|
||||||
|
|
||||||
|
# Run Caddy
|
||||||
|
CMD ["caddy", "run", "--config", "/etc/caddy/Caddyfile"]
|
Loading…
Reference in a new issue