Compare commits
No commits in common. "bf3fdfbaea0243d34efd140b21f17f6a7d18846d" and "c7660c3de4d432ec8f552f16f81452ae654c7b15" have entirely different histories.
bf3fdfbaea
...
c7660c3de4
2 changed files with 72 additions and 1 deletions
|
@ -1,6 +1,10 @@
|
||||||
name: Build and Deploy Website
|
name: Build and Deploy Website
|
||||||
|
|
||||||
on: [push]
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
- develop
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
67
.woodpecker.yml.old
Normal file
67
.woodpecker.yml.old
Normal file
|
@ -0,0 +1,67 @@
|
||||||
|
pipeline:
|
||||||
|
build:
|
||||||
|
image: node:lts
|
||||||
|
commands:
|
||||||
|
- npm install
|
||||||
|
- npm run build
|
||||||
|
build-de:
|
||||||
|
image: node:lts
|
||||||
|
commands:
|
||||||
|
- npm install
|
||||||
|
- npm run build:de
|
||||||
|
deploy-dev:
|
||||||
|
image: alpine
|
||||||
|
secrets:
|
||||||
|
- FTP_HOST
|
||||||
|
- FTP_USERNAME
|
||||||
|
- FTP_PASSWORD
|
||||||
|
commands:
|
||||||
|
- which lftp || ( apk --update add lftp )
|
||||||
|
- lftp -e "set ftp:ssl-force true; set ssl:verify-certificate no; mirror -R ./dist/en/ dev.samuel-philipp.com/; bye" -u $FTP_USERNAME,$FTP_PASSWORD $FTP_HOST
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
- develop
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
deploy-dev-de:
|
||||||
|
image: alpine
|
||||||
|
secrets:
|
||||||
|
- FTP_HOST
|
||||||
|
- FTP_USERNAME
|
||||||
|
- FTP_PASSWORD
|
||||||
|
commands:
|
||||||
|
- which lftp || ( apk --update add lftp )
|
||||||
|
- lftp -e "set ftp:ssl-force true; set ssl:verify-certificate no; mirror -R ./dist/de/ dev.samuel-philipp.de/; bye" -u $FTP_USERNAME,$FTP_PASSWORD $FTP_HOST
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
- develop
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
deploy:
|
||||||
|
image: alpine
|
||||||
|
secrets:
|
||||||
|
- FTP_HOST
|
||||||
|
- FTP_USERNAME
|
||||||
|
- FTP_PASSWORD
|
||||||
|
commands:
|
||||||
|
- which lftp || ( apk --update add lftp )
|
||||||
|
- lftp -e "set ftp:ssl-force true; set ssl:verify-certificate no; mirror -R ./dist/en/ samuel-philipp.com/; bye" -u $FTP_USERNAME,$FTP_PASSWORD $FTP_HOST
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
- main
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
deploy-de:
|
||||||
|
image: alpine
|
||||||
|
secrets:
|
||||||
|
- FTP_HOST
|
||||||
|
- FTP_USERNAME
|
||||||
|
- FTP_PASSWORD
|
||||||
|
commands:
|
||||||
|
- which lftp || ( apk --update add lftp )
|
||||||
|
- lftp -e "set ftp:ssl-force true; set ssl:verify-certificate no; mirror -R ./dist/de/ samuel-philipp.de/; bye" -u $FTP_USERNAME,$FTP_PASSWORD $FTP_HOST
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
- main
|
||||||
|
event:
|
||||||
|
- push
|
Loading…
Reference in a new issue