This commit is contained in:
parent
59c8d72982
commit
6528779fb6
42
.drone.yml
42
.drone.yml
@ -9,17 +9,41 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- npm install
|
- npm install
|
||||||
- npm run build
|
- npm run build
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
|
||||||
- name: deploy
|
- name: deploy
|
||||||
image: mwienk/docker-lftp
|
image: cschlosser/drone-ftps
|
||||||
environment:
|
environment:
|
||||||
$USERNAME:
|
FTP_USERNAME:
|
||||||
from_secret: username
|
from_secret: username
|
||||||
$PASSWORD:
|
FTP_PASSWORD:
|
||||||
from_secret: password
|
from_secret: password
|
||||||
$HOST:
|
PLUGIN_HOSTNAME:
|
||||||
from_secret: host
|
from_secret: host
|
||||||
commands:
|
PLUGIN_DEST_DIR: /www
|
||||||
- echo $USERNAME
|
PLUGIN_SRC_DIR: /build
|
||||||
- echo $PASSWORD
|
PLUGIN_EXCLUDE: (.htaccess)|(.git)
|
||||||
- echo $HOST
|
when:
|
||||||
- lftp -c "open -u $USERNAME,$PASSWORD $HOST; mirror -Rnev ./build ./www --ignore-time --parallel=10 --exclude .htaccess --exclude-glob .git* --exclude .git/"
|
branch:
|
||||||
|
- main
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
|
||||||
|
# - name: deploy
|
||||||
|
# image: cschlosser/drone-ftps
|
||||||
|
# hostname:
|
||||||
|
# from_secret: net2ftp.cluster027.hosting.ovh.net
|
||||||
|
# environment:
|
||||||
|
# USERNAME:
|
||||||
|
# from_secret: username
|
||||||
|
# PASSWORD:
|
||||||
|
# from_secret: password
|
||||||
|
# HOST:
|
||||||
|
# from_secret: host
|
||||||
|
# commands:
|
||||||
|
# - echo $USERNAME
|
||||||
|
# - echo $PASSWORD
|
||||||
|
# - echo $HOST
|
||||||
|
# - lftp -c "open -u $USERNAME,$PASSWORD $HOST; mirror -Rnev ./build ./www --ignore-time --parallel=10 --exclude .htaccess --exclude-glob .git* --exclude .git/"
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -3,3 +3,4 @@ node_modules
|
|||||||
/build
|
/build
|
||||||
/.svelte-kit
|
/.svelte-kit
|
||||||
/package
|
/package
|
||||||
|
secrets.txt
|
||||||
|
Loading…
Reference in New Issue
Block a user