File tree Expand file tree Collapse file tree 1 file changed +14
-7
lines changed
Expand file tree Collapse file tree 1 file changed +14
-7
lines changed Original file line number Diff line number Diff line change 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..."
You can’t perform that action at this time.
0 commit comments