Compare commits
1 commit
05aebc55ae
...
a623d96fb9
Author | SHA1 | Date | |
---|---|---|---|
a623d96fb9 |
2 changed files with 73 additions and 37 deletions
|
@ -22,51 +22,20 @@ jobs:
|
||||||
run: npm run build:de
|
run: npm run build:de
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: build
|
name: website
|
||||||
path: dist/
|
path: dist/
|
||||||
deploy-dev:
|
deploy-dev:
|
||||||
name: Deploy Dev Website
|
needs: [website]
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
container:
|
container:
|
||||||
image: node:lts-alpine
|
image: node:lts-alpine
|
||||||
needs: [build]
|
if:
|
||||||
if: github.ref == 'refs/heads/develop'
|
- github.ref == 'refs/heads/develop'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v3
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
run: which lftp || ( apk --update add lftp )
|
run: which lftp || ( apk --update add lftp )
|
||||||
- name: Deploy English Version
|
- name: Deploy English Version
|
||||||
run: lftp -e "set ftp:ssl-force true; set ssl:verify-certificate no; mirror -R ./build/en/ dev.samuel-philipp.com/; bye" -u $FTP_USERNAME,$FTP_PASSWORD $FTP_HOST
|
run: 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
|
||||||
env:
|
|
||||||
FTP_HOST: ${{ secrets.FTP_HOST }}
|
|
||||||
FTP_USERNAME: ${{ secrets.FTP_USERNAME }}
|
|
||||||
FTP_PASSWORD: ${{ secrets.FTP_PASSWORD }}
|
|
||||||
- name: Deploy German Version
|
- name: Deploy German Version
|
||||||
run: lftp -e "set ftp:ssl-force true; set ssl:verify-certificate no; mirror -R ./build/de/ dev.samuel-philipp.de/; bye" -u $FTP_USERNAME,$FTP_PASSWORD $FTP_HOST
|
run: 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
|
||||||
env:
|
|
||||||
FTP_HOST: ${{ secrets.FTP_HOST }}
|
|
||||||
FTP_USERNAME: ${{ secrets.FTP_USERNAME }}
|
|
||||||
FTP_PASSWORD: ${{ secrets.FTP_PASSWORD }}
|
|
||||||
deploy:
|
|
||||||
name: Deploy Website
|
|
||||||
runs-on: docker
|
|
||||||
container:
|
|
||||||
image: node:lts-alpine
|
|
||||||
needs: [build]
|
|
||||||
if: github.ref == 'refs/heads/main'
|
|
||||||
steps:
|
|
||||||
- uses: actions/download-artifact@v3
|
|
||||||
- name: Install Dependencies
|
|
||||||
run: which lftp || ( apk --update add lftp )
|
|
||||||
- name: Deploy English Version
|
|
||||||
run: lftp -e "set ftp:ssl-force true; set ssl:verify-certificate no; mirror -R ./build/en/ samuel-philipp.com/; bye" -u $FTP_USERNAME,$FTP_PASSWORD $FTP_HOST
|
|
||||||
env:
|
|
||||||
FTP_HOST: ${{ secrets.FTP_HOST }}
|
|
||||||
FTP_USERNAME: ${{ secrets.FTP_USERNAME }}
|
|
||||||
FTP_PASSWORD: ${{ secrets.FTP_PASSWORD }}
|
|
||||||
- name: Deploy German Version
|
|
||||||
run: lftp -e "set ftp:ssl-force true; set ssl:verify-certificate no; mirror -R ./build/de/ samuel-philipp.de/; bye" -u $FTP_USERNAME,$FTP_PASSWORD $FTP_HOST
|
|
||||||
env:
|
|
||||||
FTP_HOST: ${{ secrets.FTP_HOST }}
|
|
||||||
FTP_USERNAME: ${{ secrets.FTP_USERNAME }}
|
|
||||||
FTP_PASSWORD: ${{ secrets.FTP_PASSWORD }}
|
|
||||||
|
|
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