Skip to content

ci: Add check for DJANGO_SETTINGS_MODULE environment variable #12

ci: Add check for DJANGO_SETTINGS_MODULE environment variable

ci: Add check for DJANGO_SETTINGS_MODULE environment variable #12

Workflow file for this run

name: Podman build & deploy
on:
push:
workflow_dispatch:
jobs:
build:
environment: test
runs-on: self-hosted
steps:
- uses: actions/checkout@v4
- name: Build Podman images
run: podman-compose -f docker-compose-deploy.yml build
- name: Deploy Podman images
run: podman-compose -f docker-compose-deploy.yml up -d --force-recreate
- name: Check Podman images
run: podman-compose -f docker-compose-deploy.yml ps
- name: Check if DJANGO_SETTINGS_MODULE is set
run: podman-compose -f docker-compose-deploy.yml exec web python -c "import os; print(os.environ.get('DJANGO_SETTINGS_MODULE'))"