File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99 lint :
1010 runs-on : ubuntu-latest
1111 steps :
12- - uses : actions/setup-go@v2
13- - uses : actions/checkout@v2
12+ - uses : actions/setup-go@v3
13+ - uses : actions/checkout@v3
1414 - name : golangci-lint
15- uses : golangci/golangci-lint-action@v2
15+ uses : golangci/golangci-lint-action@v3
1616 with :
17- version : v1.45.2
17+ version : v1.48.0
1818
1919 docker-release :
2020 needs : lint
2121 runs-on : ubuntu-latest
2222 steps :
23- - uses : actions/checkout@v2
23+ - uses : actions/checkout@v3
2424 - name : Docker login
2525 run : docker login --username ${{ secrets.DOCKER_LOGIN }} --password ${{ secrets.DOCKER_PASSWORD }}
2626 - name : Docker release
@@ -30,13 +30,13 @@ jobs:
3030 needs : lint
3131 runs-on : ubuntu-latest
3232 steps :
33- - uses : actions/checkout@v2
33+ - uses : actions/checkout@v3
3434 - name : Set up Go
35- uses : actions/setup-go@v2
35+ uses : actions/setup-go@v3
3636 with :
37- go-version : 1.18
37+ go-version : 1.19
3838 - name : Run GoReleaser
39- uses : goreleaser/goreleaser-action@v2
39+ uses : goreleaser/goreleaser-action@v3
4040 with :
4141 version : latest
4242 args : release --rm-dist
Original file line number Diff line number Diff line change 11wait-for-pg
22dist /*
3+ .vscode
Original file line number Diff line number Diff line change 1- FROM golang:1.18 .0-alpine3.15 as builder
1+ FROM golang:1.19 .0-alpine3.15 as builder
22
33ENV GO111MODULE=on
44
@@ -18,7 +18,7 @@ RUN CGO_ENABLED=0 \
1818 go build -v -o wait-for-pg
1919
2020# Copy compiled binary to clear Alpine Linux image
21- FROM alpine:3.15.4
21+ FROM alpine:3.16.2
2222WORKDIR /
2323RUN apk add --no-cache ca-certificates
2424COPY --from=builder /go/src/github.com/mxssl/wait-for-pg/wait-for-pg /usr/local/bin/wait-for-pg
Original file line number Diff line number Diff line change @@ -4,13 +4,14 @@ Simple app that checks if PostgreSQL database is ready or not.
44
55## Install and usage
66
7- ### Option 1: use binary
7+ ### Option 1: binary
88
99``` sh
10- wget https://github.com/mxssl/wait-for-pg/releases/download/v1.0.0 /wait-for-pg-linux-amd64.tar.gz
10+ wget https://github.com/mxssl/wait-for-pg/releases/download/v1.0.1 /wait-for-pg-linux-amd64.tar.gz
1111tar xvzf wait-for-pg-linux-amd64.tar.gz
12- cp wait-for-pg /usr/local/bin/wait-for-pg
12+ mv wait-for-pg /usr/local/bin/wait-for-pg
1313chmod +x /usr/local/bin/wait-for-pg
14+ rm wait-for-pg-linux-amd64.tar.gz
1415
1516wait-for-pg check \
1617 --host postgres.domain.com \
@@ -23,13 +24,13 @@ wait-for-pg check \
2324 --sleep 2
2425```
2526
26- ### Option 2: use docker container
27+ ### Option 2: docker container
2728
2829``` sh
2930docker container \
3031 run \
3132 --rm \
32- mxssl/wait-for-pg:v1.0.0 \
33+ mxssl/wait-for-pg:v1.0.1 \
3334 wait-for-pg check \
3435 --host postgres.domain.com \
3536 --port 5432 \
Original file line number Diff line number Diff line change @@ -8,6 +8,6 @@ require (
88)
99
1010require (
11- github.com/inconshreveable/mousetrap v1.0.0 // indirect
11+ github.com/inconshreveable/mousetrap v1.0.1 // indirect
1212 github.com/spf13/pflag v1.0.5 // indirect
1313)
Original file line number Diff line number Diff line change 11github.com/cpuguy83/go-md2man/v2 v2.0.2 /go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o =
22github.com/inconshreveable/mousetrap v1.0.0 h1:Z8tu5sraLXCXIcARxBp/8cbvlwVa7Z1NHg9XEKhtSvM =
33github.com/inconshreveable/mousetrap v1.0.0 /go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8 =
4+ github.com/inconshreveable/mousetrap v1.0.1 h1:U3uMjPSQEBMNp1lFxmllqCPM6P5u/Xq7Pgzkat/bFNc =
5+ github.com/inconshreveable/mousetrap v1.0.1 /go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw =
46github.com/lib/pq v1.10.6 h1:jbk+ZieJ0D7EVGJYpL9QTz7/YW6UHbmdnZWYyK5cdBs =
57github.com/lib/pq v1.10.6 /go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o =
68github.com/russross/blackfriday/v2 v2.1.0 /go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM =
You can’t perform that action at this time.
0 commit comments