Create .woodpecker.yml
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
when:
|
||||
branch: main
|
||||
event: push
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
image: docker:cli
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
commands:
|
||||
- docker build -t dashboard:latest .
|
||||
|
||||
- name: deploy
|
||||
image: docker:cli
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
commands:
|
||||
- docker stop dashboard || true
|
||||
- docker rm dashboard || true
|
||||
- docker run -d
|
||||
--name dashboard
|
||||
--restart unless-stopped
|
||||
-p 3001:3001
|
||||
--env-file /opt/docker/dashboard/.env
|
||||
dashboard:latest
|
||||
Reference in New Issue
Block a user