File tree Expand file tree Collapse file tree 2 files changed +41
-0
lines changed
Expand file tree Collapse file tree 2 files changed +41
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build & Push to container registry
2+
3+ on :
4+ release :
5+ types : [created]
6+ push :
7+ branches :
8+ - main
9+ pull_request :
10+ branches :
11+ - " **"
12+ paths :
13+ - " Dockerfile"
14+
15+ jobs :
16+ docker :
17+ uses : nezuchan/workflows/.github/workflows/docker-build.yml@main
18+ secrets : inherit
Original file line number Diff line number Diff line change 1+ FROM golang:1.21-alpine as build-stage
2+
3+ WORKDIR /tmp/build
4+
5+ COPY . .
6+
7+ # Build the project
8+ RUN go build .
9+
10+ FROM alpine:3
11+
12+ LABEL name "PGSQL Auto Backup"
13+ LABEL maintainer "KagChi"
14+
15+ WORKDIR /app
16+
17+ # Install needed deps
18+ RUN apk add --no-cache tini
19+
20+ COPY --from=build-stage /tmp/build/pgsql-backup main
21+
22+ ENTRYPOINT ["tini" , "--" ]
23+ CMD ["/app/main" ]
You can’t perform that action at this time.
0 commit comments