Skip to content

Commit 632b0e2

Browse files
Retain build artifacts to assist debugging
1 parent 8eb3da1 commit 632b0e2

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

.github/workflows/build.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,24 @@ jobs:
140140
run: |
141141
docker compose exec app run-tests
142142
143+
- if: ${{ always() }}
144+
name: Retain logs and configs for debugging
145+
run: |
146+
mkdir artifacts && cd artifacts
147+
docker compose logs > docker-compose.log
148+
docker compose config > docker-compose.yml
149+
curl -sL --cookie-jar .cookies http://localhost:8080/geoserver/web/ || true > geoserver-web.html
150+
151+
- if: ${{ always() }}
152+
name: Upload build artifacts
153+
uses: actions/upload-artifact
154+
with:
155+
name: GeoServer Build (${{ env.BUILD_SUFFIX }})
156+
path: artifacts/*
157+
if-no-files-found: error
158+
retention-days: 7
159+
include-hidden-files: false
160+
143161
push:
144162
runs-on: ubuntu-24.04
145163
needs:

bin/run-tests

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/sh -e
22

3-
curl -sqL --cookie-jar /tmp/cookies localhost:8080/geoserver/web/?0 | tac | grep -q 'GeoServer: Welcome'
3+
curl -sL --cookie-jar /tmp/cookies http://localhost:8080/geoserver/web/ | tac | grep -q 'GeoServer: Welcome'

0 commit comments

Comments
 (0)