Skip to content

Commit 504868d

Browse files
committed
fix(ci): Force Docker rebuild to bypass cache for environment variable changes
Resolves persistent CI failures in workflow run 17084167265 by forcing Docker images to rebuild without cache. Problem: - Previous fix for ZPMOD_STAGE_MODULE_DIR in docker-compose.yml was correct - However, GitHub Actions was reusing cached Docker images built before the fix - Cached images don't pick up docker-compose.yml environment changes - Tests continued failing with 'zpmod module not found' errors Solution: - Add --no-cache flag to 'docker compose build' commands in CI workflow - Forces fresh Docker image builds that will use updated docker-compose.yml - Ensures environment variables are properly set in containers This resolves the Docker caching issue without changing the underlying fix.
1 parent f2f4f34 commit 504868d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232

3333
- name: Build test environment
3434
run: |
35-
cd docker && docker compose build test-${{ matrix.env }}
35+
cd docker && docker compose build --no-cache test-${{ matrix.env }}
3636
3737
- name: Run tests in ${{ matrix.env }} environment
3838
run: |
@@ -68,7 +68,7 @@ jobs:
6868
- name: Build and run smoke tests
6969
run: |
7070
cd docker
71-
docker compose build test-smoke
71+
docker compose build --no-cache test-smoke
7272
docker compose run --rm test-smoke
7373
7474
- name: Upload smoke logs (if any)

0 commit comments

Comments
 (0)