All checks were successful
Run tests / Execute tox to run the test suite (push) Successful in 3m6s
24 lines
732 B
YAML
24 lines
732 B
YAML
name: Deploy into stage environment
|
|
on:
|
|
push:
|
|
branches:
|
|
- stage
|
|
workflow_dispatch:
|
|
|
|
env:
|
|
DEPLOY_DIR: "/var/www/touren.alpenverein-karlsruhe.de/wsgi/django-dav-events.stage"
|
|
|
|
jobs:
|
|
deploy-on-stage:
|
|
name: Deploy into stage environment
|
|
runs-on: [django-dav-events, kitty]
|
|
steps:
|
|
- name: "Pull code"
|
|
run: git -C "$DEPLOY_DIR/src/django-dav-events" pull
|
|
- 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
|