diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml new file mode 100644 index 0000000..46417b1 --- /dev/null +++ b/.gitea/workflows/deploy.yml @@ -0,0 +1,19 @@ +name: Deploy + +on: + push: + branches: + - main + +jobs: + deploy: + runs-on: host + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Deploy container + run: | + rsync -a --delete ${{ gitea.workspace }}/ /opt/redunits/www/ + cd /opt/redunits/www + docker compose up -d --build