Skip to content

Commit be4028e

Browse files
committed
update deps
1 parent dbfbefd commit be4028e

6 files changed

Lines changed: 21 additions & 17 deletions

File tree

.github/workflows/ci.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,18 @@ jobs:
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

.gitignore

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

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.18.0-alpine3.15 as builder
1+
FROM golang:1.19.0-alpine3.15 as builder
22

33
ENV 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
2222
WORKDIR /
2323
RUN apk add --no-cache ca-certificates
2424
COPY --from=builder /go/src/github.com/mxssl/wait-for-pg/wait-for-pg /usr/local/bin/wait-for-pg

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff 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
1111
tar 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
1313
chmod +x /usr/local/bin/wait-for-pg
14+
rm wait-for-pg-linux-amd64.tar.gz
1415

1516
wait-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
2930
docker 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 \

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ require (
88
)
99

1010
require (
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
)

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o=
22
github.com/inconshreveable/mousetrap v1.0.0 h1:Z8tu5sraLXCXIcARxBp/8cbvlwVa7Z1NHg9XEKhtSvM=
33
github.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=
46
github.com/lib/pq v1.10.6 h1:jbk+ZieJ0D7EVGJYpL9QTz7/YW6UHbmdnZWYyK5cdBs=
57
github.com/lib/pq v1.10.6/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o=
68
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=

0 commit comments

Comments
 (0)