From b357eccc80cf9eb686a79d1be4d9a316326a2688 Mon Sep 17 00:00:00 2001 From: Elijah Date: Sun, 3 Mar 2024 22:09:50 +0100 Subject: [PATCH 1/5] Added DOMAIN variable to CI pipeline --- .gitea/workflows/ci-pipeline.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitea/workflows/ci-pipeline.yaml b/.gitea/workflows/ci-pipeline.yaml index c67fadc..c850e25 100644 --- a/.gitea/workflows/ci-pipeline.yaml +++ b/.gitea/workflows/ci-pipeline.yaml @@ -20,6 +20,7 @@ jobs: SECRET_KEY: "t3st-dummy-s3cr3t-k3y" STATIC_ROOT: "tmp/static/" MEDIA_ROOT: "tmp/media/" + DOMAIN: "localhost" steps: - uses: actions/checkout@v4 From 30742ded1cc526a2d88500fc99080fbc3994be0e Mon Sep 17 00:00:00 2001 From: Elijah Date: Sun, 3 Mar 2024 22:17:44 +0100 Subject: [PATCH 2/5] Try to match domain to testserver --- .gitea/workflows/ci-pipeline.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/ci-pipeline.yaml b/.gitea/workflows/ci-pipeline.yaml index c850e25..28512e3 100644 --- a/.gitea/workflows/ci-pipeline.yaml +++ b/.gitea/workflows/ci-pipeline.yaml @@ -20,7 +20,7 @@ jobs: SECRET_KEY: "t3st-dummy-s3cr3t-k3y" STATIC_ROOT: "tmp/static/" MEDIA_ROOT: "tmp/media/" - DOMAIN: "localhost" + DOMAIN: "testserver" steps: - uses: actions/checkout@v4 From 5f2106ce53edbf6c2e2e4c9abe21f5198a0a3298 Mon Sep 17 00:00:00 2001 From: Elijah Date: Sun, 3 Mar 2024 22:31:56 +0100 Subject: [PATCH 3/5] edited domain var to localhost --- .gitea/workflows/ci-pipeline.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/ci-pipeline.yaml b/.gitea/workflows/ci-pipeline.yaml index 28512e3..c850e25 100644 --- a/.gitea/workflows/ci-pipeline.yaml +++ b/.gitea/workflows/ci-pipeline.yaml @@ -20,7 +20,7 @@ jobs: SECRET_KEY: "t3st-dummy-s3cr3t-k3y" STATIC_ROOT: "tmp/static/" MEDIA_ROOT: "tmp/media/" - DOMAIN: "testserver" + DOMAIN: "localhost" steps: - uses: actions/checkout@v4 From b7846fa2588011506a655cb2156b16fa97a3e134 Mon Sep 17 00:00:00 2001 From: Elijah Date: Sun, 3 Mar 2024 22:40:02 +0100 Subject: [PATCH 4/5] add checks to see if domain var correctly loads --- .gitea/workflows/ci-pipeline.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.gitea/workflows/ci-pipeline.yaml b/.gitea/workflows/ci-pipeline.yaml index c850e25..d6d647a 100644 --- a/.gitea/workflows/ci-pipeline.yaml +++ b/.gitea/workflows/ci-pipeline.yaml @@ -65,9 +65,14 @@ jobs: pip install -r requirements.txt if: steps.didkit.outcome == 'success' + - name: Check correct env vars + run: | + echo $DOMAIN + - name: Run tests run: | source venv/bin/activate + echo $DOMAIN python manage.py test ssikit-tests: From d0ecbf071630da68699a1c689e50308b3f89a120 Mon Sep 17 00:00:00 2001 From: Elijah Date: Sun, 3 Mar 2024 23:06:21 +0100 Subject: [PATCH 5/5] Changed domain var to testserver --- .gitea/workflows/ci-pipeline.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/ci-pipeline.yaml b/.gitea/workflows/ci-pipeline.yaml index d6d647a..dcb4343 100644 --- a/.gitea/workflows/ci-pipeline.yaml +++ b/.gitea/workflows/ci-pipeline.yaml @@ -20,7 +20,7 @@ jobs: SECRET_KEY: "t3st-dummy-s3cr3t-k3y" STATIC_ROOT: "tmp/static/" MEDIA_ROOT: "tmp/media/" - DOMAIN: "localhost" + DOMAIN: "testserver" steps: - uses: actions/checkout@v4