Actualiser .gitea/workflows/build.yaml
Some checks failed
Production / deploy (push) Failing after 4s
Some checks failed
Production / deploy (push) Failing after 4s
This commit is contained in:
parent
aea3509f77
commit
499e8b6888
@ -27,39 +27,27 @@ jobs:
|
|||||||
- name: Build staging
|
- name: Build staging
|
||||||
run: hugo --gc --minify --buildDrafts -b https://blog.broillet.ch/
|
run: hugo --gc --minify --buildDrafts -b https://blog.broillet.ch/
|
||||||
|
|
||||||
- name: debug
|
- name: Copy (scp) staging build to blog server
|
||||||
run: |
|
uses: garygrossgarten/github-action-scp@release
|
||||||
ls -al .
|
|
||||||
ls -al public/
|
|
||||||
|
|
||||||
- name: Copy (scp) staging build to blog server
|
|
||||||
uses: https://github.com/appleboy/scp-action@v0.1.4
|
|
||||||
with:
|
with:
|
||||||
|
local: 'public'
|
||||||
|
remote: /var/www/html/staging
|
||||||
host: ${{ secrets.SSH_HOSTNAME }}
|
host: ${{ secrets.SSH_HOSTNAME }}
|
||||||
username: root
|
username: 'root'
|
||||||
port: 22
|
privateKey : ${{ secrets.SSH_KEY }}
|
||||||
key: ${{ secrets.SSH_KEY }}
|
rmRemote: true
|
||||||
source: 'public/*'
|
dotfiles: true
|
||||||
target: '/var/www/html/staging'
|
|
||||||
rm: true
|
|
||||||
strip_components: 1
|
|
||||||
|
|
||||||
- name: Build production
|
- name: Build production
|
||||||
run: hugo --gc --minify -b https://blog.broillet.ch/
|
run: hugo --gc --minify -b https://blog.broillet.ch/
|
||||||
|
|
||||||
- name: debug
|
- name: Copy (scp) prod build to blog server
|
||||||
run: |
|
uses: garygrossgarten/github-action-scp@release
|
||||||
ls -al .
|
|
||||||
ls -al public/
|
|
||||||
|
|
||||||
- name: Copy (scp) prod build to blog server
|
|
||||||
uses: https://github.com/appleboy/scp-action@v0.1.4
|
|
||||||
with:
|
with:
|
||||||
|
local: 'public'
|
||||||
|
remote: /var/www/html/prod
|
||||||
host: ${{ secrets.SSH_HOSTNAME }}
|
host: ${{ secrets.SSH_HOSTNAME }}
|
||||||
username: root
|
username: 'root'
|
||||||
port: 22
|
privateKey : ${{ secrets.SSH_KEY }}
|
||||||
key: ${{ secrets.SSH_KEY }}
|
rmRemote: true
|
||||||
source: 'public/*'
|
dotfiles: true
|
||||||
target: '/var/www/html/prod'
|
|
||||||
rm: true
|
|
||||||
strip_components: 1
|
|
Loading…
Reference in New Issue
Block a user