Files
csgowtf/.woodpecker.yml

44 lines
922 B
YAML
Raw Permalink Normal View History

2023-03-15 17:20:59 +01:00
pipeline:
install dependencies:
image: node:19
commands:
- yarn install --immutable
pull: true
build:
image: node:19
commands:
- yarn build
secrets: [ vue_app_api_url, vue_app_track_url, vue_app_track_id, vue_app_tracking ]
pull: true
deploy:
image: cschlosser/drone-ftps
settings:
hostname:
from_secret: ftp_host
src_dir: "/dist/"
clean_dir: true
secrets: [ ftp_username, ftp_password ]
when:
branch: master
event: [ push, tag ]
status: success
deploy (dev):
image: cschlosser/drone-ftps
settings:
hostname:
from_secret: ftp_host
src_dir: "/dist/"
clean_dir: true
secrets:
- source: ftp_username_dev
target: ftp_username
- source: ftp_password_dev
target: ftp_password
when:
branch: dev
event: [push, tag]
status: success