Skip to content

Commit 084cc5b

Browse files
committed
trying this again.
1 parent af71df8 commit 084cc5b

1 file changed

Lines changed: 16 additions & 16 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,28 +9,28 @@ jobs:
99
matrix:
1010
dotnet-version: [8.x]
1111

12-
services:
13-
gotenberg:
14-
image: gotenberg/gotenberg:8
15-
ports:
16-
- 3000:3000
17-
env:
18-
GOTENBERG_API_BASIC_AUTH_USERNAME: testuser
19-
GOTENBERG_API_BASIC_AUTH_PASSWORD: testpass
20-
options: >-
21-
--health-cmd "curl -f http://localhost:3000/health || exit 1"
22-
--health-interval 10s
23-
--health-timeout 5s
24-
--health-retries 5
25-
volumes:
26-
- ${{ github.workspace }}:/workspace
27-
2812
steps:
2913
- name: Checkout
3014
uses: actions/checkout@v4
3115
with:
3216
fetch-depth: 0
3317

18+
- name: Start Gotenberg with Basic Auth
19+
run: |
20+
docker run -d \
21+
--name gotenberg \
22+
-p 3000:3000 \
23+
-e GOTENBERG_API_BASIC_AUTH_USERNAME=testuser \
24+
-e GOTENBERG_API_BASIC_AUTH_PASSWORD=testpass \
25+
gotenberg/gotenberg:8 \
26+
gotenberg \
27+
--api-enable-basic-auth \
28+
--api-timeout=1800s \
29+
--log-level=debug
30+
31+
# Wait for Gotenberg to be ready
32+
timeout 30 bash -c 'until curl -f http://localhost:3000/health; do sleep 1; done'
33+
3434
- name: Setup Dotnet
3535
uses: actions/setup-dotnet@v4
3636
with:

0 commit comments

Comments
 (0)