17 lines
510 B
YAML
17 lines
510 B
YAML
steps:
|
|
- name: build
|
|
image: docker
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
commands:
|
|
- docker build -t codebreaker/caddy-keydb:latest .
|
|
|
|
- name: deploy
|
|
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
|