Skip to content

Commit f80d817

Browse files
committed
fix goreleaser
1 parent 6a57323 commit f80d817

4 files changed

Lines changed: 14 additions & 8 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
wait-for-pg
2+
dist/*

.goreleaser.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ builds:
88
- linux
99
goarch:
1010
- amd64
11+
archives:
12+
- name_template: "{{ .ProjectName }}-{{ .Os }}-{{ .Arch }}"
13+
files:
14+
- none*
1115
checksum:
1216
name_template: 'checksums.txt'
1317
snapshot:

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
BINARY_NAME=wait-for-pg
22
CURRENT_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))
44
DOCKER_REGISTRY=mxssl
55
export GO111MODULE=on
66

@@ -27,15 +27,15 @@ tidy:
2727
go mod tidy
2828

2929
github-release-dry:
30-
echo -e "TAG: ${TAG}"
30+
@echo "TAG: ${TAG}"
3131
goreleaser release --rm-dist --snapshot --skip-publish
3232

3333
github-release:
34-
echo -e "TAG: ${TAG}"
34+
@echo "TAG: ${TAG}"
3535
goreleaser release --rm-dist
3636

3737
docker-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}

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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
1213
chmod +x /usr/local/bin/wait-for-pg
1314

1415
wait-for-pg check \
@@ -27,7 +28,7 @@ wait-for-pg check \
2728
docker 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 \

0 commit comments

Comments
 (0)