Skip to content

Commit 9b9e4eb

Browse files
committed
feat app-health
1 parent c44263a commit 9b9e4eb

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/docker-app.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,13 @@ jobs:
3030
push: false # apenas build local
3131
tags: getting-started:latest
3232

33+
- name: Run container and test health
34+
run: |
35+
docker run -d -p 3000:3000 --name app getting-started
36+
sleep 5
37+
curl -f http://localhost:3000 || (docker logs app && exit 1)
38+
39+
40+
3341

3442

0 commit comments

Comments
 (0)