From 73d0968f2b472d7f646fa521bed90320e7925e45 Mon Sep 17 00:00:00 2001 From: David Gwilliam Date: Sun, 10 May 2026 23:49:27 -0700 Subject: [PATCH 1/4] ci: trigger PR workflow for pipeline validation --- TEST_TRIGGER.md | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 TEST_TRIGGER.md diff --git a/TEST_TRIGGER.md b/TEST_TRIGGER.md new file mode 100644 index 0000000..3a8631f --- /dev/null +++ b/TEST_TRIGGER.md @@ -0,0 +1,4 @@ +# CI Pipeline Test Trigger + +This file is used to trigger the PR workflow for testing the CI pipeline. +Remove this file after validation is complete. \ No newline at end of file -- 2.52.0 From ee868270841aae7bbb65cdebf8eb53b7062facee Mon Sep 17 00:00:00 2001 From: David Gwilliam Date: Sun, 10 May 2026 23:56:49 -0700 Subject: [PATCH 2/4] fix: add DATABASE_URL env to unit tests step in PR workflow --- .gitea/workflows/pr.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitea/workflows/pr.yml b/.gitea/workflows/pr.yml index 0096e89..19efd7e 100644 --- a/.gitea/workflows/pr.yml +++ b/.gitea/workflows/pr.yml @@ -30,6 +30,8 @@ jobs: - name: Run unit tests run: bun test src/__tests__/unit/ src/__tests__/*.test.tsx src/__tests__/auth-simple.test.ts + env: + DATABASE_URL: postgresql://user:pass@localhost:5432/dummy build-and-deploy-ci: runs-on: ubuntu-latest -- 2.52.0 From d1ebdc9988a32acbccdebbe8c3410448a9bf4582 Mon Sep 17 00:00:00 2001 From: David Gwilliam Date: Mon, 11 May 2026 00:03:18 -0700 Subject: [PATCH 3/4] fix: add docker CLI to ci-base image for Docker build/deploy in CI --- Dockerfile.ci-base | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Dockerfile.ci-base b/Dockerfile.ci-base index e8ac883..1393b71 100644 --- a/Dockerfile.ci-base +++ b/Dockerfile.ci-base @@ -5,7 +5,15 @@ FROM mcr.microsoft.com/playwright:v1.59.1-jammy AS base # Install unzip (required for Bun installation) and other tools -RUN apt-get update && apt-get install -y unzip && rm -rf /var/lib/apt/lists/* +RUN apt-get update && apt-get install -y unzip ca-certificates curl gnupg lsb-release && rm -rf /var/lib/apt/lists/* + +# Install Docker CLI (for building/pushing images in CI) +RUN install -m 0755 -d /etc/apt/keyrings && \ + curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg && \ + chmod a+r /etc/apt/keyrings/docker.gpg && \ + echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null && \ + apt-get update && apt-get install -y docker-ce-cli docker-compose-plugin && \ + rm -rf /var/lib/apt/lists/* # Install Bun (latest version) # Note: The playwright image already has Node.js pre-installed -- 2.52.0 From bb43e0bb805c3d5473b8ed871362286511f75c14 Mon Sep 17 00:00:00 2001 From: David Gwilliam Date: Mon, 11 May 2026 00:03:54 -0700 Subject: [PATCH 4/4] fix: add missing build context to docker build in CI image workflow --- .gitea/workflows/build-ci-images.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitea/workflows/build-ci-images.yml b/.gitea/workflows/build-ci-images.yml index 394e164..0b01c4e 100644 --- a/.gitea/workflows/build-ci-images.yml +++ b/.gitea/workflows/build-ci-images.yml @@ -58,6 +58,7 @@ jobs: --tag ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/ci-base:latest \ --tag ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/ci-base:playwright-${{ steps.meta.outputs.playwright_version }} \ --tag ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/ci-base:${{ github.sha }} \ + . - name: Clean up if: always() -- 2.52.0