Add yq binary
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Danny Bessems 2023-03-15 11:53:25 +01:00
parent 342556c25b
commit 8eb849b671
1 changed files with 8 additions and 0 deletions

View File

@ -10,11 +10,19 @@ ARG REPO_USERNAME
ARG REPO_PASSWORD
ADD https://${REPO_USERNAME}:${REPO_PASSWORD}@sn.itch.fyi/Repository/bin/VMware/ovftool/4.4.x/${OVFTOOL_INSTALLER} /tmp/ovftool-installer
RUN apk --update add --no-cache \
curl \
jq && \
curl -L https://api.github.com/repos/mikefarah/yq/releases/latest | \
jq -r '.assets[] | select(.name | contains("yq_linux_amd64")) | .browser_download_url' | \
xargs -I {} curl -L -o /tmp/yq {}
FROM debian:11-slim
COPY --from=packer /bin/packer /bin/packer
COPY --from=terraform /bin/terraform /bin/terraform
COPY --from=download /tmp/ovftool-installer /tmp/ovftool-installer
COPY --from=download /tmp/yq /bin/yq
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en