Refactor deployment scripts in pipeline-test.yaml.
Some checks failed
Build and Deploy Hugo Site / build_and_deploy (push) Failing after 1m29s
Some checks failed
Build and Deploy Hugo Site / build_and_deploy (push) Failing after 1m29s
This commit is contained in:
parent
2ab3d22438
commit
185daa557d
1 changed files with 16 additions and 19 deletions
|
|
@ -59,24 +59,21 @@ jobs:
|
||||||
- name: Build Hugo site
|
- name: Build Hugo site
|
||||||
run: hugo --minify
|
run: hugo --minify
|
||||||
|
|
||||||
- name: Setup SSH Key
|
- name: Setup SSH Key
|
||||||
uses: webfactory/ssh-agent@v0.5.3
|
uses: webfactory/ssh-agent@v0.5.3
|
||||||
with:
|
with:
|
||||||
ssh-private-key: ${{ secrets.VFO_SSH_KEY }}
|
ssh-private-key: ${{ secrets.VFO_SSH_KEY }}
|
||||||
|
|
||||||
- name: Deploy to Development
|
|
||||||
if: env.myEnv_env == 'development'
|
|
||||||
run: |
|
|
||||||
rsync -avz --delete ./ verua.info@verua.info:/preview.verua.info/
|
|
||||||
env:
|
|
||||||
RSYNC_RSH: "ssh -o StrictHostKeyChecking=no"
|
|
||||||
|
|
||||||
- name: Deploy to Production
|
|
||||||
if: env.myEnv_env == 'production'
|
|
||||||
run: |
|
|
||||||
rsync -avz --delete ./ verua.info@verua.info:/httpdocs/
|
|
||||||
env:
|
|
||||||
RSYNC_RSH: "ssh -o StrictHostKeyChecking=no"
|
|
||||||
|
|
||||||
|
|
||||||
|
- name: Deploy to Development
|
||||||
|
if: env.myEnv_env == 'development'
|
||||||
|
run: |
|
||||||
|
rsync -avz --delete ./ verua.info@verua.info:/preview.verua.info/
|
||||||
|
env:
|
||||||
|
RSYNC_RSH: 'ssh -o StrictHostKeyChecking=no'
|
||||||
|
|
||||||
|
- name: Deploy to Production
|
||||||
|
if: env.myEnv_env == 'production'
|
||||||
|
run: |
|
||||||
|
rsync -avz --delete ./ verua.info@verua.info:/httpdocs/
|
||||||
|
env:
|
||||||
|
RSYNC_RSH: 'ssh -o StrictHostKeyChecking=no'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue