Switched deployment to rsync
This commit is contained in:
parent
dc03cb14dc
commit
df3cc12fe3
|
@ -3,7 +3,7 @@ jobs:
|
|||
build:
|
||||
runs-on: docker
|
||||
container:
|
||||
image: forgejo.zenerdio.de/sebastian/c3space-website-ci:v0.1.0
|
||||
image: forgejo.zenerdio.de/sebastian/c3space-website-ci:v0.2.0
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/cache@v3
|
||||
|
|
|
@ -6,7 +6,7 @@ jobs:
|
|||
deploy:
|
||||
runs-on: docker
|
||||
container:
|
||||
image: forgejo.zenerdio.de/sebastian/c3space-website-ci:v0.1.0
|
||||
image: forgejo.zenerdio.de/sebastian/c3space-website-ci:v0.2.0
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/cache@v3
|
||||
|
@ -20,4 +20,4 @@ jobs:
|
|||
- run: . virtenv/bin/activate; pip install -r requirements.txt
|
||||
- run: . virtenv/bin/activate; nikola build
|
||||
- run: echo "${{ secrets.DEPLOY_KEY }}" > id_rsa_deploy; chmod 600 id_rsa_deploy
|
||||
- run: cd output; echo "cd public_html\nput -r ." | sftp -i ../id_rsa_deploy -o StrictHostKeyChecking=no c3space@zero-gravitas.zenerdio.de
|
||||
- run: rsync -gtr --chown=:www-data -e 'ssh -i id_rsa_deploy -o StrictHostKeyChecking=no' ./output/ rsync@zero-gravitas.zenerdio.de:/
|
Loading…
Reference in New Issue