build: Rebase multi-stage container build
This commit is contained in:
parent
5df8233e83
commit
9e6c071cce
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user