Skip to content
Snippets Groups Projects
Verified Commit 87d25b1d authored by Sheogorath's avatar Sheogorath :european_castle:
Browse files

fix(opentf): Fix the build process including renames once again

parent 36f4d4de
No related branches found
No related tags found
No related merge requests found
Pipeline #18322 passed
release=0.2.0 release=0.2.1
...@@ -5,13 +5,16 @@ build: ...@@ -5,13 +5,16 @@ build:
WORKDIR /go-workdir WORKDIR /go-workdir
GIT CLONE https://github.com/opentofu/opentofu.git ./ GIT CLONE https://github.com/opentofu/opentofu.git ./
ENV CGO_ENABLED=0 ENV CGO_ENABLED=0
RUN go build -mod=readonly -trimpath RUN go build -ldflags "-s -w" -mod=readonly -trimpath ./cmd/tofu
SAVE ARTIFACT ./opentofu ./opentf RUN ls -la
SAVE ARTIFACT ./tofu ./tofu
container-internal: container-internal:
FROM ../mirror+distroless-static FROM ../mirror+distroless-static
COPY +build/opentf /usr/local/bin/opentf COPY +build/tofu /usr/local/bin/tofu
ENTRYPOINT ["/usr/local/bin/opentf"] COPY +build/tofu /usr/local/bin/opentofu
COPY +build/tofu /usr/local/bin/opentf
ENTRYPOINT ["/usr/local/bin/tofu"]
container: container:
FROM ../mirror+golang FROM ../mirror+golang
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment