Files
truecharts/containers/apps/charts-ci/Dockerfile
T
TrueCharts BotandGitHub 24e877fbeb chore(container): update ghcr.io/actions/actions-runner docker tag to v2.321.0 (#29326)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[ghcr.io/actions/actions-runner](https://redirect.github.com/actions/runner)
| stage | minor | `2.320.0` -> `2.321.0` |

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Release Notes

<details>
<summary>actions/runner (ghcr.io/actions/actions-runner)</summary>

###
[`v2.321.0`](https://redirect.github.com/actions/runner/releases/tag/v2.321.0)

[Compare
Source](https://redirect.github.com/actions/runner/compare/v2.320.0...v2.321.0)

#### What's Changed

- Fix release workflow to use distinct artifact names by
[@&#8203;ericsciple](https://redirect.github.com/ericsciple) in
[https://github.com/actions/runner/pull/3485](https://redirect.github.com/actions/runner/pull/3485)
- Update dotnet sdk to latest version
[@&#8203;6](https://redirect.github.com/6).0.425 by
[@&#8203;github-actions](https://redirect.github.com/github-actions) in
[https://github.com/actions/runner/pull/3433](https://redirect.github.com/actions/runner/pull/3433)
- add ref and type to job completion in run service by
[@&#8203;yaananth](https://redirect.github.com/yaananth) in
[https://github.com/actions/runner/pull/3492](https://redirect.github.com/actions/runner/pull/3492)
- Remove Broker Migration Message logging by
[@&#8203;luketomlinson](https://redirect.github.com/luketomlinson) in
[https://github.com/actions/runner/pull/3493](https://redirect.github.com/actions/runner/pull/3493)
- Bump dotnet SDK to dotnet 8. by
[@&#8203;TingluoHuang](https://redirect.github.com/TingluoHuang) in
[https://github.com/actions/runner/pull/3500](https://redirect.github.com/actions/runner/pull/3500)
- Remove dotnet8 compatibility test. by
[@&#8203;TingluoHuang](https://redirect.github.com/TingluoHuang) in
[https://github.com/actions/runner/pull/3502](https://redirect.github.com/actions/runner/pull/3502)
- Remove node16 from the runner. by
[@&#8203;TingluoHuang](https://redirect.github.com/TingluoHuang) in
[https://github.com/actions/runner/pull/3503](https://redirect.github.com/actions/runner/pull/3503)
- send action name for run service by
[@&#8203;yaananth](https://redirect.github.com/yaananth) in
[https://github.com/actions/runner/pull/3520](https://redirect.github.com/actions/runner/pull/3520)
- Handle runner not found by
[@&#8203;ericsciple](https://redirect.github.com/ericsciple) in
[https://github.com/actions/runner/pull/3536](https://redirect.github.com/actions/runner/pull/3536)
- Publish job telemetry to run-service. by
[@&#8203;TingluoHuang](https://redirect.github.com/TingluoHuang) in
[https://github.com/actions/runner/pull/3545](https://redirect.github.com/actions/runner/pull/3545)
- Fetch repo-level runner groups from API in v2 flow by
[@&#8203;lucavallin](https://redirect.github.com/lucavallin) in
[https://github.com/actions/runner/pull/3546](https://redirect.github.com/actions/runner/pull/3546)
- Allow runner to check service connection in background. by
[@&#8203;TingluoHuang](https://redirect.github.com/TingluoHuang) in
[https://github.com/actions/runner/pull/3542](https://redirect.github.com/actions/runner/pull/3542)
- Expose ENV for cache service v2. by
[@&#8203;TingluoHuang](https://redirect.github.com/TingluoHuang) in
[https://github.com/actions/runner/pull/3548](https://redirect.github.com/actions/runner/pull/3548)
- Update runner docker image. by
[@&#8203;TingluoHuang](https://redirect.github.com/TingluoHuang) in
[https://github.com/actions/runner/pull/3511](https://redirect.github.com/actions/runner/pull/3511)
- Bump Azure.Storage.Blobs from 12.19.1 to 12.23.0 in /src by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/actions/runner/pull/3549](https://redirect.github.com/actions/runner/pull/3549)
- fix dotnet-upgrade.yml to print right version by
[@&#8203;TingluoHuang](https://redirect.github.com/TingluoHuang) in
[https://github.com/actions/runner/pull/3550](https://redirect.github.com/actions/runner/pull/3550)
- Update dotnet sdk to latest version
[@&#8203;8](https://redirect.github.com/8).0.404 by
[@&#8203;github-actions](https://redirect.github.com/github-actions) in
[https://github.com/actions/runner/pull/3552](https://redirect.github.com/actions/runner/pull/3552)
- Configure dependabot to check github-actions updates by
[@&#8203;Goooler](https://redirect.github.com/Goooler) in
[https://github.com/actions/runner/pull/3333](https://redirect.github.com/actions/runner/pull/3333)
- Bump actions/checkout from 3 to 4 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/actions/runner/pull/3556](https://redirect.github.com/actions/runner/pull/3556)

#### New Contributors

- [@&#8203;lucavallin](https://redirect.github.com/lucavallin) made
their first contribution in
[https://github.com/actions/runner/pull/3546](https://redirect.github.com/actions/runner/pull/3546)
- [@&#8203;Goooler](https://redirect.github.com/Goooler) made their
first contribution in
[https://github.com/actions/runner/pull/3333](https://redirect.github.com/actions/runner/pull/3333)

**Full Changelog**:
https://github.com/actions/runner/compare/v2.320.0...v2.321.0

*Note: Actions Runner follows a progressive release policy, so the
latest release might not be available to your enterprise, organization,
or repository yet.
To confirm which version of the Actions Runner you should expect, please
view the download instructions for your enterprise, organization, or
repository.
See
https://docs.github.com/en/enterprise-cloud@latest/actions/hosting-your-own-runners/adding-self-hosted-runners*

#### Windows x64

We recommend configuring the runner in a root folder of the Windows
drive (e.g. "C:\actions-runner"). This will help avoid issues related to
service identity folder permissions and long file path restrictions on
Windows.

The following snipped needs to be run on `powershell`:

```powershell

### Create a folder under the drive root
mkdir \actions-runner ; cd \actions-runner

### Download the latest runner package
Invoke-WebRequest -Uri https://github.com/actions/runner/releases/download/v2.321.0/actions-runner-win-x64-2.321.0.zip -OutFile actions-runner-win-x64-2.321.0.zip

### Extract the installer
Add-Type -AssemblyName System.IO.Compression.FileSystem ;
[System.IO.Compression.ZipFile]::ExtractToDirectory("$PWD\actions-runner-win-x64-2.321.0.zip", "$PWD")
```

#### Windows arm64

We recommend configuring the runner in a root folder of the Windows
drive (e.g. "C:\actions-runner"). This will help avoid issues related to
service identity folder permissions and long file path restrictions on
Windows.

The following snipped needs to be run on `powershell`:

```powershell

### Create a folder under the drive root
mkdir \actions-runner ; cd \actions-runner

### Download the latest runner package
Invoke-WebRequest -Uri https://github.com/actions/runner/releases/download/v2.321.0/actions-runner-win-arm64-2.321.0.zip -OutFile actions-runner-win-arm64-2.321.0.zip

### Extract the installer
Add-Type -AssemblyName System.IO.Compression.FileSystem ;
[System.IO.Compression.ZipFile]::ExtractToDirectory("$PWD\actions-runner-win-arm64-2.321.0.zip", "$PWD")
```

#### OSX x64

```bash

### Create a folder
mkdir actions-runner && cd actions-runner

### Download the latest runner package
curl -O -L https://github.com/actions/runner/releases/download/v2.321.0/actions-runner-osx-x64-2.321.0.tar.gz

### Extract the installer
tar xzf ./actions-runner-osx-x64-2.321.0.tar.gz
```

#### OSX arm64 (Apple silicon)

```bash

### Create a folder
mkdir actions-runner && cd actions-runner

### Download the latest runner package
curl -O -L https://github.com/actions/runner/releases/download/v2.321.0/actions-runner-osx-arm64-2.321.0.tar.gz

### Extract the installer
tar xzf ./actions-runner-osx-arm64-2.321.0.tar.gz
```

#### Linux x64

```bash

### Create a folder
mkdir actions-runner && cd actions-runner

### Download the latest runner package
curl -O -L https://github.com/actions/runner/releases/download/v2.321.0/actions-runner-linux-x64-2.321.0.tar.gz

### Extract the installer
tar xzf ./actions-runner-linux-x64-2.321.0.tar.gz
```

#### Linux arm64

```bash

### Create a folder
mkdir actions-runner && cd actions-runner

### Download the latest runner package
curl -O -L https://github.com/actions/runner/releases/download/v2.321.0/actions-runner-linux-arm64-2.321.0.tar.gz

### Extract the installer
tar xzf ./actions-runner-linux-arm64-2.321.0.tar.gz
```

#### Linux arm

```bash

### Create a folder
mkdir actions-runner && cd actions-runner

### Download the latest runner package
curl -O -L https://github.com/actions/runner/releases/download/v2.321.0/actions-runner-linux-arm-2.321.0.tar.gz

### Extract the installer
tar xzf ./actions-runner-linux-arm-2.321.0.tar.gz
```

#### Using your self hosted runner

For additional details about configuring, running, or shutting down the
runner please check out our [product
docs.](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/adding-self-hosted-runners)

#### SHA-256 Checksums

The SHA-256 checksums for the packages included in this build are shown
below:

- actions-runner-win-x64-2.321.0.zip <!-- BEGIN SHA win-x64
-->88d754da46f4053aec9007d172020c1b75ab2e2049c08aef759b643316580bbc<!--
END SHA win-x64 -->
- actions-runner-win-arm64-2.321.0.zip <!-- BEGIN SHA win-arm64
-->22df5a32a65a55e43dab38a200d4f72be0f9f5ce1839f5ad34e689a0d3ff0fb7<!--
END SHA win-arm64 -->
- actions-runner-osx-x64-2.321.0.tar.gz <!-- BEGIN SHA osx-x64
-->b2c91416b3e4d579ae69fc2c381fc50dbda13f1b3fcc283187e2c75d1b173072<!--
END SHA osx-x64 -->
- actions-runner-osx-arm64-2.321.0.tar.gz <!-- BEGIN SHA osx-arm64
-->fbee07e42a134645d4f04f8146b0a3d0b3c948f0d6b2b9fa61f4318c1192ff79<!--
END SHA osx-arm64 -->
- actions-runner-linux-x64-2.321.0.tar.gz <!-- BEGIN SHA linux-x64
-->ba46ba7ce3a4d7236b16fbe44419fb453bc08f866b24f04d549ec89f1722a29e<!--
END SHA linux-x64 -->
- actions-runner-linux-arm64-2.321.0.tar.gz <!-- BEGIN SHA linux-arm64
-->62cc5735d63057d8d07441507c3d6974e90c1854bdb33e9c8b26c0da086336e1<!--
END SHA linux-arm64 -->
- actions-runner-linux-arm-2.321.0.tar.gz <!-- BEGIN SHA linux-arm
-->2b96a4991ebf2b2076908a527a1a13db590217f9375267b5dd95f0300dde432b<!--
END SHA linux-arm -->

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Renovate
Bot](https://redirect.github.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4xNDIuNyIsInVwZGF0ZWRJblZlciI6IjM4LjE0Mi43IiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbImF1dG9tZXJnZSIsInJlbm92YXRlL2NvbnRhaW5lciIsInR5cGUvbWlub3IiXX0=-->
2024-11-13 21:13:47 +01:00

223 lines
8.3 KiB
Docker

# Define Chart Releaser
# hadolint ignore=DL3007
FROM ghcr.io/actions/actions-runner:2.321.0@sha256:27f3f74ec6f88026491d761270525ccf630a53ce9cd5db1d5f44cd2470abe380
SHELL ["/bin/bash", "-c"]
# Environment variables for the versions of the tools
ENV kubectlVersion=1.21.0
ENV kustomizeVersion=4.4.1
ENV helmVersion=3.14.4
ENV oldhelmVersion=3.12.1
ENV kubevalVersion=0.15.0
ENV kubeconformVersion=0.4.12
ENV conftestVersion=0.25.0
ENV goyqVersion=4.44.1
ENV rancherVersion=2.8.4
ENV tiltVersion=0.33.14
ENV skaffoldVersion=1.28.0
ENV kubeScoreVersion=1.18.0
ENV chartReleaserVersion=1.6.1
ENV chartTestingVersion=3.11.0
# Default architecture
ENV arch=amd64
ENV HOMEBREW_NO_ANALYTICS=1 \
HOMEBREW_NO_ENV_HINTS=1 \
HOMEBREW_NO_INSTALL_CLEANUP=1 \
DEBCONF_NONINTERACTIVE_SEEN=true \
DEBIAN_FRONTEND="noninteractive" \
APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=DontWarn
USER root
# Install base packages
# hadolint ignore=DL3008,DL3015,SC2086,SC2155
RUN \
apt-get update \
&& \
apt-get install -y --no-install-recommends --no-install-suggests \
apt-transport-https \
ca-certificates \
curl \
gcc \
git \
gnupg \
gzip \
jo \
jq \
moreutils \
tar \
unrar \
unzip \
wget \
zip \
&& rm -rf /var/lib/apt/lists/*
# Create a directory for the tools
RUN mkdir -p /tools/bin
# Set the PATH
ENV PATH="/tools/bin:${PATH}"
# Install python packages
# hadolint ignore=DL3008,DL3015,SC2086,SC2155
RUN \
apt-get update \
&& \
apt-get install -y --no-install-recommends --no-install-suggests \
python3 \
python3-pip \
&& rm -rf /var/lib/apt/lists/*
# Install cwebp for website repo
# hadolint ignore=DL3008,DL3015,SC2086,SC2155
RUN \
apt-get update \
&& \
apt-get install -y --no-install-recommends --no-install-suggests \
webp \
&& rm -rf /var/lib/apt/lists/*
### Kubernetes-Tools Installer
# Define download and extraction commands
RUN set -eux; \
download_and_extract() { \
url=$1; \
dest_dir=$2; \
command_path=$3; \
curl -L "$url" -o temp_archive; \
if [[ "$url" == *.tar.gz || "$url" == *.tgz ]]; then \
tar -xzf temp_archive -C "$dest_dir" --strip-components=$(dirname "$command_path" | grep -o "/" | wc -l) || tar -xvpf temp_archive -C "$dest_dir" --strip-components=$(dirname "$command_path" | grep -o "/" | wc -l); \
elif [[ "$url" == *.zip ]]; then \
unzip temp_archive -d "$dest_dir"; \
else \
cp temp_archive "$dest_dir/$(basename "$command_path")"; \
fi; \
rm temp_archive; \
}; \
download_and_copy() { \
tool=$1; \
version=$2; \
rename="${3:-$tool}"; \
url=""; \
command_path_in_package="$(basename $tool)"; \
if [ "$arch" = "amd64" ]; then arch_path="amd64"; elif [ "$arch" = "arm64" ]; then arch_path="arm64"; else arch_path="arm"; fi; \
if [ "$arch" = "amd64" ]; then xarch="x86_64"; elif [ "$arch" = "arm64" ]; then xarch="arm64"; else xarch="arm"; fi; \
case "$tool" in \
kubectl) \
url="https://dl.k8s.io/release/v${version}/bin/linux/${arch}/kubectl"; \
;; \
kustomize) \
url="https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize/v${version}/kustomize_v${version}_linux_${arch}.tar.gz"; \
;; \
helm) \
url="https://get.helm.sh/helm-v${version}-linux-${arch}.tar.gz"; \
command_path_in_package="linux-${arch_path}/helm"; \
;; \
kubeval) \
url="https://github.com/instrumenta/kubeval/releases/download/${version}/kubeval-linux-${arch}.tar.gz"; \
;; \
kubeconform) \
url="https://github.com/yannh/kubeconform/releases/download/v${version}/kubeconform-linux-${arch}.tar.gz"; \
;; \
conftest) \
url="https://github.com/open-policy-agent/conftest/releases/download/v${version}/conftest_${version}_Linux_${xarch}.tar.gz"; \
;; \
go-yq) \
url="https://github.com/mikefarah/yq/releases/download/v${version}/yq_linux_${arch}"; \
command_path_in_package="yq_linux_${arch}"; \
;; \
rancher) \
url="https://github.com/rancher/cli/releases/download/v${version}/rancher-linux-${arch}-v${version}.tar.gz"; \
command_path_in_package="rancher-v${version}/rancher"; \
;; \
tilt) \
url="https://github.com/tilt-dev/tilt/releases/download/v${version}/tilt.${version}.linux.${xarch}.tar.gz"; \
;; \
skaffold) \
url="https://storage.googleapis.com/skaffold/releases/v${version}/skaffold-linux-${arch}"; \
command_path_in_package="skaffold-linux-${arch}"; \
;; \
kube-score) \
url="https://github.com/zegl/kube-score/releases/download/v${version}/kube-score_${version}_linux_${arch}.tar.gz"; \
;; \
chart-releaser) \
url="https://github.com/helm/chart-releaser/releases/download/v${version}/chart-releaser_${version}_linux_${arch}.tar.gz"; \
command_path_in_package="cr"; \
rename="cr"; \
;; \
chart-testing) \
url="https://github.com/helm/chart-testing/releases/download/v${version}/chart-testing_${version}_linux_${arch}.tar.gz"; \
command_path_in_package="ct"; \
rename="ct"; \
;; \
*) echo "Unknown tool: $tool"; exit 1 ;; \
esac; \
mkdir -p /tools/${tool}; \
download_and_extract "$url" "/tools/${tool}" "$command_path_in_package"; \
cp "/tools/${tool}/$command_path_in_package" "/tools/bin/$rename"; \
rm -rf "/tools/${tool}"; \
chmod 666 "/tools/bin/$rename"; \
chmod +x "/tools/bin/$rename"; \
}; \
# Download and copy each tool
download_and_copy "kubectl" "$kubectlVersion"; \
download_and_copy "kustomize" "$kustomizeVersion"; \
download_and_copy "helm" "$helmVersion"; \
download_and_copy "helm" "$oldhelmVersion" "oldhelm"; \
download_and_copy "kubeval" "$kubevalVersion"; \
download_and_copy "kubeconform" "$kubeconformVersion"; \
download_and_copy "conftest" "$conftestVersion"; \
download_and_copy "go-yq" "$goyqVersion"; \
download_and_copy "rancher" "$rancherVersion"; \
download_and_copy "tilt" "$tiltVersion"; \
download_and_copy "skaffold" "$skaffoldVersion"; \
download_and_copy "kube-score" "$kubeScoreVersion"; \
download_and_copy "chart-releaser" "$chartReleaserVersion"; \
download_and_copy "chart-testing" "$chartTestingVersion";
# Install Pre-Commit
# hadolint ignore=DL3008,DL3015,SC2086,SC2155
RUN \
apt-get update \
&& \
apt-get install -y --no-install-recommends --no-install-suggests \
pre-commit \
&& rm -rf /var/lib/apt/lists/*
# Install golang
COPY --from=golang:1.23.2@sha256:ad5c126b5cf501a8caef751a243bb717ec204ab1aa56dc41dc11be089fafcb4f /usr/local/go/ /usr/local/go/
ENV GOPATH /go
ENV PATH $GOPATH/bin:$PATH
# hadolint ignore=DL3008,DL3015,SC2086,SC2155
RUN mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 777 "$GOPATH"
# don't auto-upgrade the gotoolchain
# https://github.com/docker-library/golang/issues/472
ENV GOTOOLCHAIN=local
USER runner
# Install homebrew
# hadolint ignore=DL3008,DL3015,SC2086,SC2155
RUN /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
LABEL "maintainer"="TrueCharts <info@truecharts.org>"
LABEL "org.opencontainers.image.source"="https://github.com/truecharts/apps"
ARG CONTAINER_NAME
ARG CONTAINER_VER
LABEL org.opencontainers.image.licenses="All-Rights-Reserved"
LABEL org.opencontainers.image.title="${CONTAINER_NAME}"
LABEL org.opencontainers.image.url="https://truecharts.org/docs/charts/${CONTAINER_NAME}"
LABEL org.opencontainers.image.version="${CONTAINER_VER}"
LABEL org.opencontainers.image.description="Container for ${CONTAINER_NAME} by TrueCharts"
LABEL org.opencontainers.image.authors="TrueCharts"
LABEL org.opencontainers.image.documentation="https://truecharts.org/docs/charts/${CONTAINER_NAME}"