Compare commits

..

2 Commits
1.91c ... 1.91e

Author SHA1 Message Date
David Shay
e9a5d3b53a multi needs QEMU for some pieces 2022-01-14 10:13:47 -05:00
David Shay
32783886fb Further optimizations of multi build 2022-01-14 10:00:01 -05:00
2 changed files with 4 additions and 0 deletions

View File

@@ -58,6 +58,8 @@ jobs:
file: cmd/kured/Dockerfile.multi
platforms: linux/arm64, linux/amd64, linux/arm/v7, linux/arm/v6, linux/386
push: true
# cache-from: type=registry,ref=user/app:buildcache
# cache-to: type=inline
tags: |
docker.io/${{ GITHUB.REPOSITORY }}:${{ steps.tags.outputs.version }}
ghcr.io/${{ GITHUB.REPOSITORY }}:${{ steps.tags.outputs.version }}

View File

@@ -9,6 +9,8 @@ ENV GOARCH=$TARGETARCH
ENV GOVARIANT=$TARGETVARIANT
WORKDIR /src
COPY go.mod go.sum .
RUN go mod download
COPY . .
RUN go list -f '{{join .Deps "\n"}}' ./cmd/kured | grep -v /vendor/ | xargs go list -f '{{if not .Standard}}{{ $dep := . }}{{range .GoFiles}}{{$dep.Dir}}/{{.}} {{end}}{{end}}'
RUN CGO_ENABLED=0 go build -o cmd/kured/kured cmd/kured/*.go