Skip to content

Commit e1612df

Browse files
committed
ci: fix CI pipeline and improve test reliability
- Convert repository name to lowercase for Docker image tags (GHCR requirement) - Disable Redis caching during integration tests to avoid connection errors - Mock Firebase initialization in tests to eliminate missing service account warning - Increase JWT secret length to meet security requirements (256 bits) - Make BackendApplicationTests use embedded MongoDB via BaseIntegrationTest
1 parent bff28d3 commit e1612df

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ on:
88

99
env:
1010
REGISTRY: ghcr.io
11-
IMAGE_NAME_BACKEND: ${{ github.repository }}/backend
12-
IMAGE_NAME_FRONTEND: ${{ github.repository }}/frontend
1311

1412
jobs:
1513
test-backend:
@@ -66,18 +64,27 @@ jobs:
6664
packages: write
6765
steps:
6866
- uses: actions/checkout@v4
67+
68+
- name: Set lowercase image names
69+
run: |
70+
REPO_LC=$(echo "${{ github.repository }}" | tr '[:upper:]' '[:lower:]')
71+
echo "IMAGE_NAME_BACKEND=${REPO_LC}/backend" >> $GITHUB_ENV
72+
echo "IMAGE_NAME_FRONTEND=${REPO_LC}/frontend" >> $GITHUB_ENV
73+
6974
- name: Log in to GitHub Container Registry
7075
uses: docker/login-action@v3
7176
with:
7277
registry: ghcr.io
7378
username: ${{ github.actor }}
7479
password: ${{ secrets.GITHUB_TOKEN }}
80+
7581
- name: Build and push backend
7682
uses: docker/build-push-action@v5
7783
with:
7884
context: ./backend/backend
7985
push: true
8086
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME_BACKEND }}:latest, ${{ env.REGISTRY }}/${{ env.IMAGE_NAME_BACKEND }}:${{ github.sha }}
87+
8188
- name: Build and push frontend
8289
uses: docker/build-push-action@v5
8390
with:

0 commit comments

Comments
 (0)