Gitea Workflow deploy_stage does not use Makefile anymore
All checks were successful
Run tests / Execute tox to run the test suite (push) Successful in 2m13s
Run tests every night at 05:05 / Execute tox to run the test suite (push) Successful in 2m8s

This commit is contained in:
2024-08-09 13:25:11 +02:00
parent 944b8cb16c
commit af838d8fb6

View File

@@ -5,15 +5,17 @@ on:
- stage - stage
workflow_dispatch: workflow_dispatch:
env:
DEPLOY_DIR: "/var/www/touren.alpenverein-karlsruhe.de/wsgi/django-dav-events.stage"
jobs: jobs:
make-deploy: deploy-on-stage:
name: Deploy into stage environment name: Deploy into stage environment
runs-on: [django-dav-events, kitty] runs-on: [django-dav-events, kitty]
steps: steps:
- name: "Checkout stage branch of the repository" - name: "Migrate database"
run: git clone -b stage "${{ gitea.server_url }}/${{ gitea.repository }}" ./repository run: $DEPLOY_DIR/python/bin/python $DEPLOY_DIR/django/manage.py migrate --noinput
- name: "Run make deploy" - name: "Collect static files"
working-directory: ./repository run: $DEPLOY_DIR/python/bin/python $DEPLOY_DIR/django/manage.py collectstatic --noinput
env: - name: "Touch wsgi file"
DEPLOY_DIR: "/var/www/touren.alpenverein-karlsruhe.de/wsgi/django-dav-events.stage" run: touch $DEPLOY_DIR/django/main/wsgi.py
run: make deploy