Refactor deployment scripts in pipeline-test.yaml.
Some checks failed
Build and Deploy Hugo Site / build_and_deploy (push) Failing after 1m29s

This commit is contained in:
Andreas Hnida 2024-04-17 23:36:28 +02:00
commit 185daa557d

View file

@ -59,24 +59,21 @@ jobs:
- name: Build Hugo site
run: hugo --minify
- name: Setup SSH Key
uses: webfactory/ssh-agent@v0.5.3
with:
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: Setup SSH Key
uses: webfactory/ssh-agent@v0.5.3
with:
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'