diff --git a/images/opentf/.release b/images/opentf/.release index 9990762bde3b533f2e4bbdb21f5c172741e881f3..15daeb6b1493316c2289f761e5071e4a07503a4f 100644 --- a/images/opentf/.release +++ b/images/opentf/.release @@ -1 +1 @@ -release=0.2.0 +release=0.2.1 diff --git a/images/opentf/Earthfile b/images/opentf/Earthfile index 0eea5077ae5555a3446d9d4d3d2f0e4dc589a4ad..a3b99f310be65df136543ad220315c84c8731545 100644 --- a/images/opentf/Earthfile +++ b/images/opentf/Earthfile @@ -5,13 +5,16 @@ build: WORKDIR /go-workdir GIT CLONE https://github.com/opentofu/opentofu.git ./ ENV CGO_ENABLED=0 - RUN go build -mod=readonly -trimpath - SAVE ARTIFACT ./opentofu ./opentf + RUN go build -ldflags "-s -w" -mod=readonly -trimpath ./cmd/tofu + RUN ls -la + SAVE ARTIFACT ./tofu ./tofu container-internal: FROM ../mirror+distroless-static - COPY +build/opentf /usr/local/bin/opentf - ENTRYPOINT ["/usr/local/bin/opentf"] + COPY +build/tofu /usr/local/bin/tofu + COPY +build/tofu /usr/local/bin/opentofu + COPY +build/tofu /usr/local/bin/opentf + ENTRYPOINT ["/usr/local/bin/tofu"] container: FROM ../mirror+golang