Skip to content

Commit

Permalink
Add basic smoke test
Browse files Browse the repository at this point in the history
There's probably a much better way to do this than just sleeping for app warmup but this should work for now.
  • Loading branch information
ericsmalling authored and Eric committed Jan 31, 2022
1 parent 0d2b9a0 commit 7cf8304
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,20 @@ jobs:
- name: Build
uses: docker/build-push-action@v2
with:
load: true
context: todolist-goof
push: false
tags: java-goof:latest

- name: Run container
run: docker run -d --rm --name java-goof -p 8080:8080 java-goof:latest

- name: Smoke test container
run: sleep 5 && curl -s --retry 5 --retry-delay 1 --retry-max-time 30 http://localhost:8080/todolist/

- name: Cleanup container
run: docker kill java-goof

build-log4shell-server-image:
runs-on: ubuntu-latest
defaults:
Expand Down

0 comments on commit 7cf8304

Please sign in to comment.