Updating deployment instructions
Update staging deployment yaml to use a common SSH key for all deployments to allow more granular access control server-side. Adding production deployment instructions.
This commit is contained in:
1 parent
d2ec162f87
commit
3691c917ef
2 files changed
+23
-1
No files matched your search
@@ -0,0 +1,22 @@
|
||||
name: Deploy to production webserver
|
||||
run-name: ${{ gitea.actor }} is deploying to staging environment
|
||||
on:
|
||||
push:
|
||||
branches: [ staging ]
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
Deploy-To-Staging:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v4
|
||||
- name: Deploy via SFTP
|
||||
uses: appleboy/scp-action@master
|
||||
with:
|
||||
host: ${{ secrets.PRODUCTION_SFTP_HOST }}
|
||||
username: ${{ secrets.PRODUCTION_SFTP_USERNAME }}
|
||||
key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||
source: "public_html/"
|
||||
target: "~/web/son-williams.ca/public_html/"
|
||||
strip_components: 1
|
||||
Reference in new issue
Block a user