diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index e69de29..12330b2 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -0,0 +1,31 @@ +name: Deploy Vault CMS + +on: + push: + branches: + - master + +jobs: + deploy: + runs-on: ubuntu-latest + + container: + volumes: + - /opt:/opt + + steps: + - name: Deploy + shell: bash + run: | + set -e + + cd /opt/owicms-src + + git fetch origin + git reset --hard origin/master + + cd /opt/owicms + + docker compose up -d --build + + docker image prune -f \ No newline at end of file