Major refactoring of build_deploy action, along with docker building and packaging improvements. Added no_signups and other .env improvements. There is no longer a separate .env.dev, both use .env now.

This commit is contained in:
badblocks 2025-05-18 11:27:59 -07:00
parent 76b2becc24
commit 6f57699c8d
28 changed files with 795 additions and 328 deletions

View file

@ -1,20 +1,19 @@
name: Build, Test, and Deploy
name: Test - Step 2
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
# workflow_run:
# workflows: ["Build - Step 1"]
# types:
# - completed
jobs:
build:
test-step-2:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [ 3.13 ]
python-version: [ 3.12 ]
database-name:
- test_db
database-password:
@ -41,8 +40,6 @@ jobs:
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v2.4.0
- name: Set up Python ${{ matrix.python-version }}
@ -100,20 +97,7 @@ jobs:
python manage.py test
env:
DATABASE_URL: postgres://${{ matrix.database-user }}:${{ matrix.database-password }}@${{ matrix.database-host }}:${{ matrix.database-port }}/${{ matrix.database-name }}
SECRET_KEY: test-secret-key
DEBUG: 1
ALLOWED_HOSTS: localhost
GITHUB_WORKFLOW: True
MODE: workflow
- uses: actions/checkout@v2.4.0
- name: Build the images and start the containers
run: |
export GITHUB_WORKFLOW=True
export MODE="Test"
docker-compose -f docker-compose.yml build
docker-compose -f docker-compose.yml up -d
# run: docker-compose up -d --build
- name: Stop containers
if: always()
run: docker-compose -f "docker-compose.yml" down