Added Gitea Runner for Automated GitOps Deployment
This commit is contained in:
17
.gitea/workflows/gitops-automatic-deployment.yml
Normal file
17
.gitea/workflows/gitops-automatic-deployment.yml
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
name: GitOps Automatic Deployment
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ main ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Rsync to GitOps Folder Target
|
||||||
|
run: |
|
||||||
|
rsync -av --delete --exclude '.git/' ./ /Gitops_Destination/
|
Reference in New Issue
Block a user