This commit is contained in:
25
.gitea/workflows/deploy.yaml
Normal file
25
.gitea/workflows/deploy.yaml
Normal file
@@ -0,0 +1,25 @@
|
||||
name: Deploy HTML to Docker LXC
|
||||
run-name: Deploying static site by ${{ github.actor }}
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest # Adjust if your runner uses a different label
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Copy HTML files to Docker LXC
|
||||
uses: appleboy/scp-action@v0.1.7
|
||||
with:
|
||||
host: ${{ secrets.SSH_HOST }}
|
||||
username: ${{ secrets.SSH_USER }}
|
||||
key: ${{ secrets.SSH_KEY }}
|
||||
source: "./*"
|
||||
target: "/opt/adiuva-website/html/"
|
||||
strip_components: 1
|
||||
overwrite: true
|
||||
Reference in New Issue
Block a user