Files
kairos-sdk/Earthfile
Itxaka ee38ccde54 Improve bundles for container and run to not use luet (#13)
This allows us to pull natively and support multiarch and auth out of
the box

Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>
2023-05-16 17:59:04 +02:00

28 lines
820 B
Plaintext

VERSION 0.7
# renovate: datasource=docker depName=golang
ARG --global GO_VERSION=1.20
# renovate: datasource=docker depName=golangci-lint
ARG --global GOLINT_VERSION=v1.51
# renovate: datasource=docker depName=quay.io/luet/base
ARG --global LUET_VERSION=0.34.0
luet:
FROM quay.io/luet/base:$LUET_VERSION
SAVE ARTIFACT /usr/bin/luet /luet
test:
FROM golang:$GO_VERSION-alpine
WORKDIR /build
COPY +luet/luet /usr/bin/luet
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN go run github.com/onsi/ginkgo/v2/ginkgo run --fail-fast --slow-spec-threshold 30s --covermode=atomic --coverprofile=coverage.out -p -r ./...
SAVE ARTIFACT coverage.out AS LOCAL coverage.out
lint:
FROM golangci/golangci-lint:$GOLINT_VERSION
WORKDIR /build
COPY . .
RUN golangci-lint run