From 87d25b1dc1d9aa3034c9840e6eb456cbcd39f6e0 Mon Sep 17 00:00:00 2001 From: Sheogorath <sheogorath@shivering-isles.com> Date: Sat, 30 Sep 2023 03:46:32 +0200 Subject: [PATCH] fix(opentf): Fix the build process including renames once again --- images/opentf/.release | 2 +- images/opentf/Earthfile | 11 +++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/images/opentf/.release b/images/opentf/.release index 9990762bd..15daeb6b1 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 0eea5077a..a3b99f310 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 -- GitLab