From e4a5923c95fdfe0ab1ca9c333f67e4835fd146cf Mon Sep 17 00:00:00 2001 From: holomekc Date: Sun, 23 Jan 2022 14:35:27 +0100 Subject: [PATCH] finalize hopefully --- .github/workflows/create-release.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index b370de3f32..63b96c6102 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -100,13 +100,19 @@ jobs: password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Build Wiremock Docker image - run: docker buildx build . -t ${{ matrix.versions.IMAGE }} --build-arg WIREMOCK_VERSION=${{ needs.build.outputs.version }} --load - - - name: docker tag - run: docker tag ${{ matrix.versions.IMAGE }} ${{ matrix.versions.IMAGE }}:${{ needs.build.outputs.version }} + run: docker buildx build . -t ${{ matrix.versions.IMAGE }} -t ${{ matrix.versions.IMAGE }}:${{ needs.build.outputs.version }} --build-arg WIREMOCK_VERSION=${{ needs.build.outputs.version }} --load - name: Test Wiremock Docker image run: | + # latest docker container run -d --name test -p 8080:8080 ${{ matrix.versions.IMAGE }} timeout 10 bash -c 'while ! curl --fail http://localhost:8080/__admin/; do sleep 1; done' - docker container rm -f test \ No newline at end of file + docker container rm -f test + + # version + docker container run -d --name test -p 8080:8080 ${{ matrix.versions.IMAGE }}:${{ needs.build.outputs.version }} + timeout 10 bash -c 'while ! curl --fail http://localhost:8080/__admin/; do sleep 1; done' + docker container rm -f test + + - name: Push wiremock-gui image to Docker HUB + run: docker buildx build . -t ${{ matrix.versions.IMAGE }} -t ${{ matrix.versions.IMAGE }}:${{ needs.build.outputs.version }} --build-arg WIREMOCK_VERSION=${{ needs.build.outputs.version }} --platform ${{ matrix.versions.PLATFORMS }} --push