build: Rebase multi-stage container build
Some checks failed
Container / Semantic Release (Dry-run) (push) Successful in 59s
Container / Container image (push) Failing after 2m58s
Container / Semantic Release (push) Has been skipped

This commit is contained in:
Danny Bessems 2024-06-05 16:21:18 +10:00
parent 5df8233e83
commit 9e6c071cce
2 changed files with 4 additions and 4 deletions

View File

@ -46,7 +46,7 @@ jobs:
build_container: build_container:
name: Container image name: Container image
container: catthehacker/ubuntu:act-latest container: catthehacker/ubuntu:act-latest
runs-on: dind-rootless runs-on: dind
needs: semrel_dryrun needs: semrel_dryrun
steps: steps:
- name: Checkout - name: Checkout

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 alpine:latest AS download FROM debian:11-slim 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,10 +10,10 @@ 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 apk --update add --no-cache \ RUN apt-get update && apt-get install -y --no-install-recommends \
curl \ curl \
jq && \ jq && \
curl -vL https://api.github.com/repos/mikefarah/yq/releases/latest | \ curl -kL 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 {} curl -L -o /tmp/yq {} && \
chmod +x /tmp/yq chmod +x /tmp/yq