fix docker bld on release (#487)

This commit is contained in:
Yuri Astrakhan 2022-11-19 05:32:23 -05:00 committed by GitHub
parent 88633cc776
commit 4d62704d2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
name: Build and test docker
name: Docker
on:
push:
@ -11,6 +11,8 @@ on:
jobs:
docker:
# Don't change this name - it is used by the merge protection rules
name: Build and test docker image
runs-on: ubuntu-latest
steps:
@ -60,8 +62,9 @@ jobs:
- name: Test Docker image
run: |
TAG=$(echo '${{ steps.docker_meta.outputs.tags }}' | cut -d' ' -f1)
export MARTIN_BUILD=-
export MARTIN_BIN="docker run --rm --net host -e DATABASE_URL -v $PWD/tests:/tests ${{ steps.docker_meta.outputs.tags }}"
export MARTIN_BIN="docker run --rm --net host -e DATABASE_URL -v $PWD/tests:/tests $TAG"
tests/test.sh
env:
DATABASE_URL: ${{ steps.pg.outputs.connection-uri }}