Skip to content

Commit

Permalink
finalize hopefully
Browse files Browse the repository at this point in the history
  • Loading branch information
holomekc committed Jan 23, 2022
1 parent 3bb4db9 commit e4a5923
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
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

0 comments on commit e4a5923

Please sign in to comment.