-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile.template
24 lines (22 loc) · 1 KB
/
Dockerfile.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#syntax=docker/dockerfile:1.6.0
FROM nicholasdille/ubuntu:22.04 AS prepare
COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \
/etc/profile.d/ \
/etc/profile.d/
SHELL [ "bash", "-clo", "errexit" ]
ARG name
ARG version
RUN <<EOF
check-github-release-asset "helm/chart-testing" "v${version}" "chart-testing_${version}_linux_${alt_arch}.tar.gz"
curl --silent --location --fail "https://github.com/helm/chart-testing/releases/download/v${version}/chart-testing_${version}_linux_${alt_arch}.tar.gz" \
| tar --extract --gzip --directory="${prefix}/bin/" --no-same-owner \
ct \
etc
mkdir -p "${prefix}/etc/ct"
mv "${prefix}/bin/etc/chart_schema.yaml" "${prefix}/etc/ct/"
mv "${prefix}/bin/etc/lintconf.yaml" "${prefix}/etc/ct/"
rmdir "${prefix}/bin/etc"
"${prefix}/bin/ct" completion bash >"${prefix}/share/bash-completion/completions/ct"
"${prefix}/bin/ct" completion fish >"${prefix}/share/fish/vendor_completions.d/ct.fish"
"${prefix}/bin/ct" completion zsh >"${prefix}/share/zsh/vendor-completions/_ct"
EOF