caddy-keydb-codebreaker/.woodpecker.yml
hackish e399f75453
Some checks failed
ci/woodpecker/manual/woodpecker Pipeline failed
build
2024-08-13 23:21:35 -07:00

22 lines
590 B
YAML

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