File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11wait-for-pg
2+ dist /*
Original file line number Diff line number Diff line change 88 - linux
99 goarch :
1010 - amd64
11+ archives :
12+ - name_template : " {{ .ProjectName }}-{{ .Os }}-{{ .Arch }}"
13+ files :
14+ - none*
1115checksum :
1216 name_template : ' checksums.txt'
1317snapshot :
Original file line number Diff line number Diff line change 11BINARY_NAME =wait-for-pg
22CURRENT_DIR =$(shell pwd)
3- TAG =$(shell git name-rev --tags --name-only $(git rev-parse HEAD ) )
3+ TAG =$(shell git name-rev --tags --name-only $(shell git rev-parse HEAD) )
44DOCKER_REGISTRY =mxssl
55export GO111MODULE =on
66
@@ -27,15 +27,15 @@ tidy:
2727 go mod tidy
2828
2929github-release-dry :
30- echo -e " TAG: ${TAG} "
30+ @ echo " TAG: ${TAG} "
3131 goreleaser release --rm-dist --snapshot --skip-publish
3232
3333github-release :
34- echo -e " TAG: ${TAG} "
34+ @ echo " TAG: ${TAG} "
3535 goreleaser release --rm-dist
3636
3737docker-release :
38- echo -e " Registry: ${DOCKER_REGISTRY} "
39- echo -e " TAG: ${TAG} "
38+ @ echo " Registry: ${DOCKER_REGISTRY} "
39+ @ echo " TAG: ${TAG} "
4040 docker build --tag ${DOCKER_REGISTRY} /${BINARY_NAME} :${TAG} .
4141 docker push ${DOCKER_REGISTRY} /${BINARY_NAME} :${TAG}
Original file line number Diff line number Diff line change @@ -7,8 +7,9 @@ Simple app that checks if PostgreSQL database is ready or not.
77### Option 1: use binary
88
99``` sh
10- wget https://github.com/mxssl/wait-for-pg/releases/download/v0.0.2/wait-for-pg -O /usr/local/bin/wait-for-pg
11-
10+ wget https://github.com/mxssl/wait-for-pg/releases/download/v0.0.3/wait-for-pg-linux-amd64.tar.gz
11+ tar xvzf wait-for-pg-linux-amd64.tar.gz
12+ cp wait-for-pg /usr/local/bin/wait-for-pg
1213chmod +x /usr/local/bin/wait-for-pg
1314
1415wait-for-pg check \
@@ -27,7 +28,7 @@ wait-for-pg check \
2728docker container \
2829 run \
2930 --rm \
30- mxssl/wait-for-pg:0.0.2 \
31+ mxssl/wait-for-pg:0.0.3 \
3132 wait-for-pg check \
3233 --host postgres.domain.com \
3334 --port 5432 \
You can’t perform that action at this time.
0 commit comments