Skip to content

Commit

Permalink
Introduce the make task to test release without publish
Browse files Browse the repository at this point in the history
Before the marking the release it is usefull
to test if docker image is working correctly.
Use goreleaser to test how it builds the image
and run tests with commands:

```shell
$ docker run --name toxiproxy-server -d --net=host -it ghcr.io/shopify/toxiproxy:2.1.6-next-amd64
$ docker run --entrypoint=/toxiproxy-cli --rm --net=host -it ghcr.io/shopify/toxiproxy:2.1.6-next-amd64 list
$ docker run --entrypoint=/toxiproxy-cli --rm --net=host -it ghcr.io/shopify/toxiproxy:2.1.6-next-amd64 create -l localhost:3000 -u localhost:80 local
$ docker run --entrypoint=/toxiproxy-cli --rm --net=host -it ghcr.io/shopify/toxiproxy:2.1.6-next-amd64 list
$ docker stop toxiproxy-server
$ docker rm toxiproxy-server
```
  • Loading branch information
miry committed Sep 23, 2021
1 parent 0eb0f84 commit 09a7b5b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ build: dist clean
release:
goreleaser release --rm-dist

.PHONY: release-dry
release-dry:
goreleaser release --rm-dist --skip-publish --skip-validate --snapshot

.PHONY: setup
setup:
go mod download
Expand Down

0 comments on commit 09a7b5b

Please sign in to comment.