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

feat(opentf): inital release

parent 8f61977c
No related branches found
No related tags found
No related merge requests found
Pipeline #18165 passed
......@@ -13,6 +13,7 @@ container-build:
- synadm
- query-exposer
- findmydevice-server
- opentf
script:
- cd images/${IMAGE}
- |
......
release=0.1.0
VERSION 0.7
build:
FROM ../mirror+golang
WORKDIR /go-workdir
GIT CLONE https://github.com/opentffoundation/opentf.git ./
ENV CGO_ENABLED=0
RUN go build -mod=readonly -trimpath
SAVE ARTIFACT ./opentf ./opentf
container-internal:
FROM ../mirror+distroless-static
COPY +build/opentf /usr/local/bin/opentf
ENTRYPOINT ["/usr/local/bin/opentf"]
container:
FROM ../mirror+golang
ARG registry=quay.io/shivering-isles/opentf
COPY .release ./
ARG tag=$(awk -F'=' '$1 == "release" {print $2}' .release)
ARG latest=false
IF [ $latest = "true" ]
FROM +container-internal
SAVE IMAGE --push ${registry}:latest
ELSE
FROM +container-internal
LABEL "quay.expires-after"="12w"
END
SAVE IMAGE --push ${registry}:${tag}
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