Files
nwxraybot/.woodpecker.yml
Sergey Elpashev a718c15be3
All checks were successful
ci/woodpecker/manual/woodpecker Pipeline was successful
ci/woodpecker/push/woodpecker Pipeline was successful
Feat: fixed conditions
2024-12-27 20:54:55 +03:00

26 lines
614 B
YAML

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, pull_request_closed]
- name: deploy
image: docker:latest
commands:
- echo "$ENV_FILE" > .env
- sh run.sh
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
ENV_FILE:
from_secret: ENV_FILE
depends_on: [build]
when:
- event: manual