caddy-keydb-codebreaker/.woodpecker.yml
hackish 0ec3b9db9c
All checks were successful
ci/woodpecker/manual/woodpecker Pipeline was successful
ci/woodpecker/deployment/woodpecker Pipeline was successful
another wp
2024-08-13 22:52:55 -07:00

21 lines
566 B
YAML

steps:
- name: build
when:
event: push
image: docker
volumes:
- /var/run/docker.sock:/var/run/docker.sock
commands:
- docker build -t codebreaker/caddy-keydb:latest .
- name: deploy
when:
event: push
image: docker
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