File tree Expand file tree Collapse file tree 2 files changed +37
-0
lines changed
Expand file tree Collapse file tree 2 files changed +37
-0
lines changed Original file line number Diff line number Diff line change 1+ on :
2+ push :
3+ branches : [ main ]
4+ pull_request :
5+ branches : [ main ]
6+
7+ jobs :
8+ build :
9+ runs-on : ubuntu-latest
10+ steps :
11+ - uses : actions/checkout@v3
12+
13+ - name : Set up go
14+ uses : actions/setup-go@v3
15+
16+ - name : Build container image /w kaniko
17+ uses : aevea/action-kaniko@master
18+ with :
19+ image : waitfor
20+ tag : latest
21+ registry : ghcr.io
22+ password : ${{secrets.CI_REGISTRY_PASSWORD}}
Original file line number Diff line number Diff line change 1+ # Builder-Stage
2+ FROM golang:1.25.1-alpine3.22 AS builder
3+ WORKDIR /app
4+
5+ COPY go.mod go.sum ./
6+ RUN go mod download
7+
8+ COPY . .
9+ RUN go build -o waitfor
10+
11+ # Runner
12+ FROM alpine:3.22.1
13+ COPY --from=builder /app/waitfor /usr/local/bin/waitfor
14+
15+ ENTRYPOINT ["waitfor" ]
You can’t perform that action at this time.
0 commit comments