Feat: update woodpecker
All checks were successful
ci/woodpecker/push/pipeline Pipeline was successful
All checks were successful
ci/woodpecker/push/pipeline Pipeline was successful
This commit is contained in:
29
.woodpecker/pipeline.yml
Normal file
29
.woodpecker/pipeline.yml
Normal file
@@ -0,0 +1,29 @@
|
||||
when:
|
||||
- branch: [master, deploy]
|
||||
event: [push, manual]
|
||||
steps:
|
||||
- name: build
|
||||
image: docker:latest
|
||||
commands:
|
||||
- echo "$ENV_FILE" > .env
|
||||
- docker build -t nwxraybot:latest .
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
environment:
|
||||
ENV_FILE:
|
||||
from_secret: ENV_FILE
|
||||
when:
|
||||
- event: [push, manual]
|
||||
- name: deploy
|
||||
image: docker:latest
|
||||
commands:
|
||||
- echo "$ENV_FILE" > .env
|
||||
- docker compose up -d
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
environment:
|
||||
ENV_FILE:
|
||||
from_secret: ENV_FILE
|
||||
depends_on: [build]
|
||||
when:
|
||||
- event: manual
|
||||
Reference in New Issue
Block a user