ApiVersions rewrite unit test #2492
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: "docker" | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
# Cancel already running jobs | |
concurrency: | |
group: docker_${{ github.head_ref }} | |
cancel-in-progress: true | |
jobs: | |
publish-image: | |
name: "Build docker image and run smoke test" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Push image | |
run: | | |
# build image | |
docker build -t shotover:test . | |
# run image for 5 seconds and then send it SIGTERM, if it returns a nonzero exit code fail CI | |
timeout --preserve-status 5 docker run --mount type=bind,source="$(pwd)"/shotover-proxy/config,target=/config shotover:test |