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:
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment