File tree 2 files changed +24
-1
lines changed
2 files changed +24
-1
lines changed Original file line number Diff line number Diff line change 49
49
run : |
50
50
make fmt
51
51
make generate
52
- git diff --exit-code --name-only
52
+ git diff --exit-code --name-only
53
+ - id : go_version
54
+ run : echo "go_version=$(asdf current golang | awk '{print $2}')" >> $GITHUB_OUTPUT
55
+ - uses : nais/platform-build-push-sign@main
56
+ id : build-push-sign
57
+ with :
58
+ name : api
59
+ build_args : |
60
+ GO_VERSION=${{ steps.go_version.outputs.go_version }}-
61
+ google_service_account : gh-api
62
+ workload_identity_provider : ${{ secrets.NAIS_IO_WORKLOAD_IDENTITY_PROVIDER }}
63
+ push : true
Original file line number Diff line number Diff line change
1
+ ARG GO_VERSION=""
2
+ FROM golang:${GO_VERSION}alpine as builder
3
+ WORKDIR /src
4
+ COPY go.* /src/
5
+ RUN go mod download
6
+ COPY . /src
7
+ RUN go build -o bin/api ./cmd/api
8
+
9
+ FROM gcr.io/distroless/base
10
+ WORKDIR /app
11
+ COPY --from=builder /src/bin/api /app/api
12
+ ENTRYPOINT ["/app/api" ]
You can’t perform that action at this time.
0 commit comments