From fc7cb90d484976fc4d4bd88e867658e63446a336 Mon Sep 17 00:00:00 2001 From: phoenix Date: Fri, 29 May 2026 17:37:13 -0400 Subject: [PATCH 1/5] Workflow fix --- .gitea/workflows/workflow.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitea/workflows/workflow.yaml b/.gitea/workflows/workflow.yaml index 7458eaa..3f92e88 100644 --- a/.gitea/workflows/workflow.yaml +++ b/.gitea/workflows/workflow.yaml @@ -36,6 +36,8 @@ jobs: cat > ~/.gitconfig << "EOF" [url "ssh://git@${{ secrets.GIT_HOST_ROOT }}"] insteadOf = https://${{ secrets.GIT_HOST_ROOT }} + [url "ssh://git@${{ secrets.GIT_HOST_ROOT }}"] + insteadOf = http://${{ secrets.GIT_HOST_ROOT }} EOF echo "Building binary" @@ -125,6 +127,8 @@ jobs: cat > ~/.gitconfig << "EOF" [url "ssh://git@${{ secrets.GIT_HOST_ROOT }}"] insteadOf = https://${{ secrets.GIT_HOST_ROOT }} + [url "ssh://git@${{ secrets.GIT_HOST_ROOT }}"] + insteadOf = http://${{ secrets.GIT_HOST_ROOT }} EOF go test -v ./... -- 2.47.3 From 690f02a459c295d0478e710580635ad670c7cd8f Mon Sep 17 00:00:00 2001 From: phoenix Date: Fri, 29 May 2026 18:46:28 -0400 Subject: [PATCH 2/5] Fixed docker --- Dockerfile | 7 +++++-- docker-compose.yaml | 4 ++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2dbbb24..6b975ee 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,7 +11,8 @@ RUN mkdir -p -m 0700 ~/.ssh && \ ssh-keyscan git.kundeng.us >> ~/.ssh/known_hosts # Configure Git to use SSH for GitHub -RUN git config --global url."ssh://git@git.kundeng.us".insteadOf "https://git.kundeng.us" +RUN git config --global url."git@git.kundeng.us:".insteadOf "https://git.kundeng.us/" && \ + git config --global url."git@git.kundeng.us:".insteadOf "http://git.kundeng.us/" # Set up the Go environment for private modules ENV GOPRIVATE=git.kundeng.us @@ -20,7 +21,9 @@ ENV GOPRIVATE=git.kundeng.us # Copy go mod and sum files COPY go.mod go.sum ./ -RUN --mount=type=ssh mkdir src && \ +# RUN --mount=type=ssh mkdir src && \ +# go mod download +RUN --mount=type=ssh \ go mod download # Copy source code diff --git a/docker-compose.yaml b/docker-compose.yaml index 98ba1b1..47462b8 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -62,7 +62,7 @@ services: POSTGRES_DB: ${POSTGRES_AUTH_DB:-textsender_db} volumes: # Persist database data using a named volume - - postgres_data:/var/lib/postgresql/data + - postgres_data:/var/lib/postgresql ports: - "5432:5432" healthcheck: @@ -86,7 +86,7 @@ services: POSTGRES_DB: ${POSTGRES_AUTH_DB:-textsender_auth_db} volumes: # Persist database data using a named volume - - postgres_data_auth:/var/lib/postgresql/data + - postgres_data_auth:/var/lib/postgresql ports: - "5433:5432" healthcheck: -- 2.47.3 From 06f715a4da315b49852b9719a56dd1dcbbb30817 Mon Sep 17 00:00:00 2001 From: phoenix Date: Fri, 29 May 2026 18:52:50 -0400 Subject: [PATCH 3/5] Updated dockerfile --- Dockerfile | 2 -- 1 file changed, 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6b975ee..ad58f9d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,8 +21,6 @@ ENV GOPRIVATE=git.kundeng.us # Copy go mod and sum files COPY go.mod go.sum ./ -# RUN --mount=type=ssh mkdir src && \ -# go mod download RUN --mount=type=ssh \ go mod download -- 2.47.3 From 99976e278e54ece338b2d6e3d96650dcb3c4f0d4 Mon Sep 17 00:00:00 2001 From: phoenix Date: Fri, 29 May 2026 18:52:59 -0400 Subject: [PATCH 4/5] Updated postgresql in docker --- docker-compose.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index 47462b8..b1b641c 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -53,7 +53,7 @@ services: # PostgreSQL Database Service main_db: - image: postgres:18.3-alpine # Use an official Postgres image (Alpine variant is smaller) + image: postgres:18.4-alpine # Use an official Postgres image (Alpine variant is smaller) container_name: textsender_db # Optional: Give the container a specific name environment: # These MUST match the user, password, and database name in the DATABASE_URL above @@ -77,7 +77,7 @@ services: restart: always # Optional: Restart policy auth_db: - image: postgres:18.3-alpine # Use an official Postgres image (Alpine variant is smaller) + image: postgres:18.4-alpine # Use an official Postgres image (Alpine variant is smaller) container_name: textsender_auth_db # Optional: Give the container a specific name environment: # These MUST match the user, password, and database name in the DATABASE_URL above -- 2.47.3 From 2b475ba3bb2d9f7579954a2f7f6cf6c4e96ad5b4 Mon Sep 17 00:00:00 2001 From: phoenix Date: Fri, 29 May 2026 19:08:12 -0400 Subject: [PATCH 5/5] Updated postgresql in workflow --- .gitea/workflows/workflow.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/workflow.yaml b/.gitea/workflows/workflow.yaml index 3f92e88..2c1eef7 100644 --- a/.gitea/workflows/workflow.yaml +++ b/.gitea/workflows/workflow.yaml @@ -51,7 +51,7 @@ jobs: runs-on: ubuntu-24.04 services: postgres: - image: postgres:18.3-alpine + image: postgres:18.4-alpine env: POSTGRES_USER: ${{ secrets.DB_TEST_USER }} POSTGRES_PASSWORD: ${{ secrets.DB_TEST_PASSWORD }} -- 2.47.3