From 5ea2380f809510eb603f74a9d5670d6d3d675cc3 Mon Sep 17 00:00:00 2001 From: Tero Virtanen Date: Mon, 2 Jun 2025 09:05:05 +0300 Subject: [PATCH 1/2] build: ci workflow --- .github/workflows/ci.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..9e1ad7fc --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,18 @@ +name: CI + +on: + push: + branches: [main, master] + pull_request: + branches: [main, master] + workflow_dispatch: + +jobs: + common: + uses: City-of-Helsinki/.github/.github/workflows/ci-django-api.yml@main + secrets: inherit + with: + python-version: 3.12 + postgres-major-version: 13 + extra-commands: | + echo 'SECRET_KEY=topsecret123' >> .env From 4967c24077fb44dc9903d31987b9164f9d55c954 Mon Sep 17 00:00:00 2001 From: Tero Virtanen Date: Mon, 2 Jun 2025 09:23:39 +0300 Subject: [PATCH 2/2] build: ci workflow SECRET_KEY is preset --- .github/workflows/ci.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9e1ad7fc..22e4177e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,5 +14,3 @@ jobs: with: python-version: 3.12 postgres-major-version: 13 - extra-commands: | - echo 'SECRET_KEY=topsecret123' >> .env