Skip to content

Commit c0f84d8

Browse files
committed
CI-specific fix
1 parent 3644a97 commit c0f84d8

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

.github/workflows/tests.yml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- uses: actions/checkout@v4
1616

1717
- name: Setup Docker Buildx
18-
uses: docker/setup-buildx-action@v2
18+
uses: docker/setup-buildx-action@v3
1919

2020
- name: Install yq
2121
run: |
@@ -97,16 +97,23 @@ jobs:
9797
cat docker-compose.ci.yaml
9898
echo "------------------------------------"
9999
100-
- name: Start services and check status
100+
- name: Build services with cache
101+
uses: docker/bake-action@v4
102+
with:
103+
files: docker-compose.ci.yaml
104+
load: true
105+
set: |
106+
*.cache-from=type=gha
107+
*.cache-to=type=gha,mode=max
108+
109+
- name: Start services
101110
run: |
102-
echo "Attempting to start services..."
103-
# Try to start services. If the command fails...
104-
docker compose -f docker-compose.ci.yaml up --build -d --remove-orphans || \
111+
echo "Starting services (images already built with cache)..."
112+
docker compose -f docker-compose.ci.yaml up -d --remove-orphans || \
105113
(
106-
# ...then execute this block of code.
107114
echo "::error::Docker Compose failed to start. Dumping all logs..."
108115
docker compose -f docker-compose.ci.yaml logs
109-
exit 1 # Ensure the job fails
116+
exit 1
110117
)
111118
112119
echo "Services started. Waiting for stabilization..."

0 commit comments

Comments
 (0)