Gitea Workflow deploy_stage does not use Makefile anymore
This commit is contained in:
@@ -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
|
|
||||||
|
|||||||
Reference in New Issue
Block a user