Gitea Workflow deploy_stage does not use Makefile anymore
This commit is contained in:
@@ -5,15 +5,17 @@ on:
|
||||
- stage
|
||||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
DEPLOY_DIR: "/var/www/touren.alpenverein-karlsruhe.de/wsgi/django-dav-events.stage"
|
||||
|
||||
jobs:
|
||||
make-deploy:
|
||||
deploy-on-stage:
|
||||
name: Deploy into stage environment
|
||||
runs-on: [django-dav-events, kitty]
|
||||
steps:
|
||||
- name: "Checkout stage branch of the repository"
|
||||
run: git clone -b stage "${{ gitea.server_url }}/${{ gitea.repository }}" ./repository
|
||||
- name: "Run make deploy"
|
||||
working-directory: ./repository
|
||||
env:
|
||||
DEPLOY_DIR: "/var/www/touren.alpenverein-karlsruhe.de/wsgi/django-dav-events.stage"
|
||||
run: make deploy
|
||||
- name: "Migrate database"
|
||||
run: $DEPLOY_DIR/python/bin/python $DEPLOY_DIR/django/manage.py migrate --noinput
|
||||
- name: "Collect static files"
|
||||
run: $DEPLOY_DIR/python/bin/python $DEPLOY_DIR/django/manage.py collectstatic --noinput
|
||||
- name: "Touch wsgi file"
|
||||
run: touch $DEPLOY_DIR/django/main/wsgi.py
|
||||
|
||||
Reference in New Issue
Block a user