build: Rebase http transfer agent
Some checks failed
Container / Semantic Release (Dry-run) (push) Successful in 51s
Container / Container image (push) Failing after 15m43s
Container / Semantic Release (push) Has been skipped

This commit is contained in:
Danny Bessems 2024-06-05 16:32:50 +10:00
parent 9e6c071cce
commit 621de81ab9

View File

@ -1,7 +1,7 @@
FROM hashicorp/packer:light as packer FROM hashicorp/packer:light as packer
FROM hashicorp/terraform:light as terraform FROM hashicorp/terraform:light as terraform
FROM debian:11-slim AS download FROM alpine:latest AS download
ENV OVFTOOL_VERSION=4.4.1-16812187 ENV OVFTOOL_VERSION=4.4.1-16812187
ENV OVFTOOL_INSTALLER=VMware-ovftool-${OVFTOOL_VERSION}-lin.x86_64.bundle ENV OVFTOOL_INSTALLER=VMware-ovftool-${OVFTOOL_VERSION}-lin.x86_64.bundle
@ -10,12 +10,11 @@ ARG REPO_USERNAME
ARG REPO_PASSWORD ARG REPO_PASSWORD
ADD https://${REPO_USERNAME}:${REPO_PASSWORD}@sn.itch.fyi/Repository/bin/VMware/ovftool/4.4.x/${OVFTOOL_INSTALLER} /tmp/ovftool-installer ADD https://${REPO_USERNAME}:${REPO_PASSWORD}@sn.itch.fyi/Repository/bin/VMware/ovftool/4.4.x/${OVFTOOL_INSTALLER} /tmp/ovftool-installer
RUN apt-get update && apt-get install -y --no-install-recommends \ RUN apk --update add --no-cache \
curl \
jq && \ jq && \
curl -kL https://api.github.com/repos/mikefarah/yq/releases/latest | \ wget -qO- https://api.github.com/repos/mikefarah/yq/releases/latest | \
jq -r '.assets[] | select(.name | endswith("yq_linux_amd64")) | .browser_download_url' | \ jq -r '.assets[] | select(.name | endswith("yq_linux_amd64")) | .browser_download_url' | \
xargs -I {} curl -L -o /tmp/yq {} && \ xargs -I {} wget -qO /tmp/yq {} && \
chmod +x /tmp/yq chmod +x /tmp/yq
FROM debian:11-slim FROM debian:11-slim