Use `test` image tag for docker-compose tests

Also adds the ability to overwrite the image in docker-compose.yml,
which allows the CI build to use the same image for all docker tests.
The default is still 'benbusby/whoogle-search' though.
このコミットが含まれているのは:
Ben Busby 2022-01-25 12:42:24 -07:00
コミット 2e3c647591
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: B9B7231E01D924A1
3個のファイルの変更3行の追加3行の削除

ファイルの表示

@ -23,6 +23,6 @@ jobs:
- name: build and test (docker-compose)
run: |
docker rm -f whoogle-search-nocompose
docker-compose up --detach
WHOOGLE_IMAGE="whoogle-search:test" docker-compose up --detach
sleep 15
docker exec whoogle-search curl -f http://localhost:5000/healthz || exit 1

ファイルの表示

@ -21,6 +21,6 @@ jobs:
- name: build and test (docker-compose)
run: |
docker rm -f whoogle-search-nocompose
docker-compose up --detach
WHOOGLE_IMAGE="whoogle-search:test" docker-compose up --detach
sleep 15
docker exec whoogle-search curl -f http://localhost:5000/healthz || exit 1

ファイルの表示

@ -4,7 +4,7 @@ version: "2.4"
services:
whoogle-search:
image: benbusby/whoogle-search
image: ${WHOOGLE_IMAGE:-benbusby/whoogle-search}
container_name: whoogle-search
restart: unless-stopped
pids_limit: 50