File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,7 +18,14 @@ FROM ghcr.io/github/gh-base-image/gh-base-noble:20260505-222701-gb8f4d82d0@sha25
1818# https://github.com/nodejs/release#release-schedule
1919# Ubuntu's apt-get install nodejs is _very_ outdated
2020# Must run as root
21- RUN apt-get -qq update && apt-get -qq install --no-install-recommends curl git \
21+
22+ # From https://thehub.github.com/epd/engineering/devops/ci/actions/setting-up-new-github-action/
23+ # We passed pkg-mirror-host as a secret to the build but it is not sensitive data.
24+ RUN --mount=type=secret,id=pkg-mirror-host,target=/etc/pkg_mirror_host.txt \
25+ if [ -f /etc/pkg_mirror_host.txt ]; then cat /etc/pkg_mirror_host.txt >> /etc/apt/mirrorlist.txt; fi
26+
27+ RUN --mount=type=secret,id=apt-auth-conf,target=/etc/apt/auth.conf.d/apt_auth.conf \
28+ apt-get -qq update && apt-get -qq install --no-install-recommends curl git \
2229 && curl -sL https://deb.nodesource.com/setup_24.x | bash - \
2330 && apt-get install -y nodejs \
2431 && node --version
You can’t perform that action at this time.
0 commit comments