mirror of
https://github.com/kairos-io/tpm-helpers.git
synced 2025-07-12 21:58:01 +00:00
Add Earthfile
This commit is contained in:
parent
f0fe82f348
commit
4f772ffb05
14
Earthfile
Normal file
14
Earthfile
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
VERSION 0.6
|
||||||
|
FROM alpine
|
||||||
|
|
||||||
|
test:
|
||||||
|
FROM opensuse/tumbleweed
|
||||||
|
RUN zypper in -y go openssl-devel
|
||||||
|
WORKDIR /build
|
||||||
|
ENV GOPATH=/go
|
||||||
|
# Cache layer for modules
|
||||||
|
COPY go.mod go.sum ./
|
||||||
|
RUN go mod download && go mod verify
|
||||||
|
RUN go install -mod=mod github.com/onsi/ginkgo/v2/ginkgo
|
||||||
|
COPY . .
|
||||||
|
RUN PATH=$PATH:$GOPATH/bin ginkgo -v ./...
|
Loading…
Reference in New Issue
Block a user