Skip to content

Commit

Permalink
add docker build smoke test
Browse files Browse the repository at this point in the history
Signed-off-by: Jenny Li <[email protected]>
  • Loading branch information
jinkjonks committed Oct 31, 2024
1 parent 3dcec25 commit def6b96
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/docker-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Docker

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

on:
pull_request:
push:
branches:
- main
jobs:
test_docker_image:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
# - ame: Build image
# run:
- uses: docker/build-push-action@v6
with:
context: .
load: true
tags: nlm-sut
- name: Smoke test
run: |
docker run -d -p 5010:5001 nlm-sut
sleep 20
curl http://localhost:5010/

0 comments on commit def6b96

Please sign in to comment.