caddy-keydb-codebreaker/.woodpecker.yml

23 lines
590 B
YAML
Raw Normal View History

2024-08-13 22:23:55 -07:00
steps:
- name: build
2024-08-13 22:52:55 -07:00
when:
2024-08-13 23:21:35 -07:00
branch: main
2024-08-13 22:44:11 -07:00
image: docker
2024-08-13 22:21:20 -07:00
volumes:
- /var/run/docker.sock:/var/run/docker.sock
commands:
- docker build -t codebreaker/caddy-keydb:latest .
2024-08-13 22:23:55 -07:00
- name: deploy
2024-08-13 22:52:55 -07:00
when:
2024-08-13 23:21:35 -07:00
branch: main
2024-08-13 22:44:11 -07:00
image: docker
2024-08-13 22:21:20 -07:00
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
2024-08-13 23:21:35 -07:00
depends_on: build