2021-11-22 10:26:25 +03:00
|
|
|
name: docker_tests
|
|
|
|
|
2021-11-23 20:58:31 +03:00
|
|
|
on:
|
|
|
|
workflow_run:
|
|
|
|
workflows: ["tests"]
|
|
|
|
branches: [main]
|
|
|
|
types:
|
|
|
|
- completed
|
2021-11-22 10:26:25 +03:00
|
|
|
|
|
|
|
jobs:
|
2021-11-23 20:58:31 +03:00
|
|
|
on-success:
|
2021-11-22 10:26:25 +03:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: checkout code
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: build and test
|
|
|
|
run: |
|
|
|
|
docker build --tag whoogle-search:test .
|
2021-11-22 10:34:48 +03:00
|
|
|
docker run --publish 5000:5000 --detach --name whoogle-search whoogle-search:test
|
|
|
|
sleep 15
|
|
|
|
docker exec whoogle-search curl -f http://localhost:5000/healthz || exit 1
|