Compare commits
2 Commits
02a7a0ef2e
...
df2b353ebd
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
df2b353ebd | ||
|
|
3fd1f5e990 |
@@ -60,18 +60,6 @@ steps:
|
|||||||
when:
|
when:
|
||||||
- event: push
|
- event: push
|
||||||
|
|
||||||
- name: test-pyswiss
|
|
||||||
image: python:3.13-slim
|
|
||||||
environment:
|
|
||||||
SWISSEPH_PATH: /tmp/ephe
|
|
||||||
commands:
|
|
||||||
- apt-get update -qq && apt-get install -y -q gcc g++
|
|
||||||
- pip install -r pyswiss/requirements.txt
|
|
||||||
- cd ./pyswiss
|
|
||||||
- python manage.py test apps.charts
|
|
||||||
when:
|
|
||||||
- event: push
|
|
||||||
|
|
||||||
- name: screendumps
|
- name: screendumps
|
||||||
image: gitea.earthmanrpg.me/discoman/python-tdd-ci:latest
|
image: gitea.earthmanrpg.me/discoman/python-tdd-ci:latest
|
||||||
commands:
|
commands:
|
||||||
@@ -80,27 +68,12 @@ steps:
|
|||||||
- event: push
|
- event: push
|
||||||
status: failure
|
status: failure
|
||||||
|
|
||||||
- name: deploy-pyswiss
|
|
||||||
image: alpine
|
|
||||||
environment:
|
|
||||||
SSH_KEY:
|
|
||||||
from_secret: deploy_ssh_key
|
|
||||||
commands:
|
|
||||||
- apk add --no-cache openssh-client
|
|
||||||
- mkdir -p ~/.ssh
|
|
||||||
- printf '%s\n' "$SSH_KEY" > ~/.ssh/id_ed25519
|
|
||||||
- chmod 600 ~/.ssh/id_ed25519
|
|
||||||
- ssh -o StrictHostKeyChecking=no discoman@167.172.154.66 ~/deploy.sh
|
|
||||||
when:
|
|
||||||
- branch: main
|
|
||||||
event: push
|
|
||||||
|
|
||||||
- name: build-and-push
|
- name: build-and-push
|
||||||
image: docker:cli
|
image: docker:cli
|
||||||
environment:
|
environment:
|
||||||
REGISTRY_PASSWORD:
|
REGISTRY_PASSWORD:
|
||||||
from_secret: gitea_registry_password
|
from_secret: gitea_registry_password
|
||||||
commands:
|
commands:
|
||||||
- echo "$REGISTRY_PASSWORD" | docker login gitea.earthmanrpg.me -u discoman --password-stdin
|
- echo "$REGISTRY_PASSWORD" | docker login gitea.earthmanrpg.me -u discoman --password-stdin
|
||||||
- docker build -t gitea.earthmanrpg.me/discoman/gamearray:latest .
|
- docker build -t gitea.earthmanrpg.me/discoman/gamearray:latest .
|
||||||
- docker push gitea.earthmanrpg.me/discoman/gamearray:latest
|
- docker push gitea.earthmanrpg.me/discoman/gamearray:latest
|
||||||
@@ -108,7 +81,7 @@ steps:
|
|||||||
- branch: main
|
- branch: main
|
||||||
event: push
|
event: push
|
||||||
|
|
||||||
- name: deploy
|
- name: deploy-staging
|
||||||
image: alpine
|
image: alpine
|
||||||
environment:
|
environment:
|
||||||
SSH_KEY:
|
SSH_KEY:
|
||||||
@@ -122,4 +95,17 @@ steps:
|
|||||||
when:
|
when:
|
||||||
- branch: main
|
- branch: main
|
||||||
event: push
|
event: push
|
||||||
|
|
||||||
|
- name: deploy-prod
|
||||||
|
image: alpine
|
||||||
|
environment:
|
||||||
|
SSH_KEY:
|
||||||
|
from_secret: deploy_ssh_key
|
||||||
|
commands:
|
||||||
|
- apk add --no-cache openssh-client
|
||||||
|
- mkdir -p ~/.ssh
|
||||||
|
- printf '%s\n' "$SSH_KEY" > ~/.ssh/id_ed25519
|
||||||
|
- chmod 600 ~/.ssh/id_ed25519
|
||||||
|
- ssh -o StrictHostKeyChecking=no discoman@staging.earthmanrpg.me /opt/gamearray/deploy.sh
|
||||||
|
when:
|
||||||
|
- event: tag
|
||||||
27
.woodpecker/pyswiss.yaml
Normal file
27
.woodpecker/pyswiss.yaml
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
steps:
|
||||||
|
- name: test-pyswiss
|
||||||
|
image: python:3.13-slim
|
||||||
|
environment:
|
||||||
|
SWISSEPH_PATH: /tmp/ephe
|
||||||
|
commands:
|
||||||
|
- apt-get update -qq && apt-get install -y -q gcc g++
|
||||||
|
- pip install -r pyswiss/requirements.txt
|
||||||
|
- cd ./pyswiss
|
||||||
|
- python manage.py test apps.charts
|
||||||
|
when:
|
||||||
|
- event: push
|
||||||
|
|
||||||
|
- name: deploy-pyswiss
|
||||||
|
image: alpine
|
||||||
|
environment:
|
||||||
|
SSH_KEY:
|
||||||
|
from_secret: pyswiss_deploy
|
||||||
|
commands:
|
||||||
|
- apk add --no-cache openssh-client
|
||||||
|
- mkdir -p ~/.ssh
|
||||||
|
- printf '%s\n' "$SSH_KEY" > ~/.ssh/id_ed25519
|
||||||
|
- chmod 600 ~/.ssh/id_ed25519
|
||||||
|
- ssh -o StrictHostKeyChecking=no discoman@167.172.154.66 ~/deploy.sh
|
||||||
|
when:
|
||||||
|
- branch: main
|
||||||
|
event: push
|
||||||
@@ -8,11 +8,22 @@ DEBUG = os.environ.get('DEBUG', 'true').lower() != 'false'
|
|||||||
ALLOWED_HOSTS = os.environ.get('ALLOWED_HOSTS', '*').split(',')
|
ALLOWED_HOSTS = os.environ.get('ALLOWED_HOSTS', '*').split(',')
|
||||||
|
|
||||||
INSTALLED_APPS = [
|
INSTALLED_APPS = [
|
||||||
|
'corsheaders',
|
||||||
'django.contrib.contenttypes',
|
'django.contrib.contenttypes',
|
||||||
'django.contrib.auth',
|
'django.contrib.auth',
|
||||||
'apps.charts',
|
'apps.charts',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
MIDDLEWARE = [
|
||||||
|
'corsheaders.middleware.CorsMiddleware',
|
||||||
|
'django.middleware.common.CommonMiddleware',
|
||||||
|
]
|
||||||
|
|
||||||
|
CORS_ALLOWED_ORIGIN_REGEXES = [
|
||||||
|
r'^https://.*\.earthmanrpg\.me$',
|
||||||
|
r'^http://localhost(:\d+)?$',
|
||||||
|
]
|
||||||
|
|
||||||
ROOT_URLCONF = 'core.urls'
|
ROOT_URLCONF = 'core.urls'
|
||||||
|
|
||||||
DATABASES = {
|
DATABASES = {
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
django==6.0.4
|
django==6.0.4
|
||||||
|
django-cors-headers==4.3.1
|
||||||
gunicorn==23.0.0
|
gunicorn==23.0.0
|
||||||
pyswisseph==2.10.3.2
|
pyswisseph==2.10.3.2
|
||||||
|
|||||||
Reference in New Issue
Block a user