@@ -6,7 +6,15 @@ labels:
|
|||||||
platform: linux/arm64
|
platform: linux/arm64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build native
|
||||||
image: golang:1.25
|
image: golang:1.25
|
||||||
commands:
|
commands:
|
||||||
- go version
|
- go
|
||||||
|
- name: build image
|
||||||
|
image: plugins/kaniko
|
||||||
|
settings:
|
||||||
|
repo: brosner.dev/brosner/pecker
|
||||||
|
tags: latest
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
no_push: true
|
||||||
|
|
||||||
|
|||||||
21
Dockerfile
Normal file
21
Dockerfile
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
FROM golang:1.25-alpine AS builder
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
COPY go.* ./
|
||||||
|
RUN go mod download || true
|
||||||
|
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
RUN CGO_ENABLED=0 GOOS=linux go build -o pecker .
|
||||||
|
|
||||||
|
FROM alpine:latest
|
||||||
|
|
||||||
|
RUN apk --no-cache add ca-certificates
|
||||||
|
|
||||||
|
WORKDIR /root/
|
||||||
|
|
||||||
|
COPY --from=builder /app/pecker .
|
||||||
|
|
||||||
|
CMD ["./pecker"]
|
||||||
|
|
||||||
Reference in New Issue
Block a user