fix(ci): rename woodpecker.yml to .woodpecker.yml
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
7f994c88a9
commit
281ef4e488
1 changed files with 3 additions and 7 deletions
|
|
@ -24,21 +24,17 @@ steps:
|
|||
- node check-qa.cjs
|
||||
|
||||
deploy:
|
||||
image: alpine:3.20
|
||||
image: node:22-alpine
|
||||
depends_on: [build]
|
||||
environment:
|
||||
SFTP_HOST:
|
||||
from_secret: sftp_host
|
||||
SFTP_USER:
|
||||
from_secret: sftp_user
|
||||
SFTP_PASS:
|
||||
SFTP_PASSWORD:
|
||||
from_secret: sftp_pass
|
||||
REMOTE_PATH:
|
||||
from_secret: sftp_remote_path
|
||||
commands:
|
||||
- apk add --no-cache lftp
|
||||
- export LFTP_PASSWORD="$SFTP_PASS"
|
||||
- lftp -u "$SFTP_USER" -e "set sftp:auto-confirm yes; open sftp://$SFTP_HOST; mirror -R dist/ $REMOTE_PATH --delete --verbose; quit"
|
||||
- node deploy.js
|
||||
when:
|
||||
- event: push
|
||||
branch: main
|
||||
|
|
|
|||
Loading…
Reference in a new issue