Merge "Build multi-arch images"
This commit is contained in:
commit
bd20aaa75b
@ -6,6 +6,9 @@
|
|||||||
docker_images:
|
docker_images:
|
||||||
- context: .
|
- context: .
|
||||||
repository: vexxhost/node-labeler
|
repository: vexxhost/node-labeler
|
||||||
|
arch:
|
||||||
|
- linux/amd64
|
||||||
|
- linux/arm64
|
||||||
|
|
||||||
- job:
|
- job:
|
||||||
name: node-labeler:image:upload
|
name: node-labeler:image:upload
|
||||||
|
@ -1,8 +1,10 @@
|
|||||||
FROM golang:1.13 AS builder
|
FROM golang:1.13 AS builder
|
||||||
WORKDIR /go/src/app
|
WORKDIR /go/src/app
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build
|
RUN CGO_ENABLED=0 GOOS=linux go build
|
||||||
|
|
||||||
FROM scratch
|
# NOTE(mnaser): https://github.com/containers/skopeo/issues/991
|
||||||
|
# FROM scratch
|
||||||
|
FROM debian:stable-slim
|
||||||
COPY --from=builder /go/src/app/node-labeler /node-labeler
|
COPY --from=builder /go/src/app/node-labeler /node-labeler
|
||||||
ENTRYPOINT ["/node-labeler"]
|
ENTRYPOINT ["/node-labeler"]
|
Loading…
Reference in New Issue
Block a user