Compare commits
No commits in common. "f8f8c01a0bbe6ddd71d04f286d33cd73978bba05" and "ad47b53fa00a4edd683c6b999a81d7b78593590c" have entirely different histories.
f8f8c01a0b
...
ad47b53fa0
2 changed files with 17 additions and 12 deletions
|
|
@ -1,13 +1,15 @@
|
||||||
|
name: test
|
||||||
|
|
||||||
on: push
|
on: push
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
name: test
|
||||||
runs-on: debian
|
runs-on: debian
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
- uses: actions/buildkit@v1
|
- uses: actions/kaniko@v1
|
||||||
with:
|
with:
|
||||||
dockerfile: debian/Dockerfile
|
dockerfile: debian/Dockerfile
|
||||||
image: actions/debian:latest
|
image: actions/debian:latest
|
||||||
password: "${{ secrets.PKGRW }}"
|
password: "${{ secrets.PKGRW }}"
|
||||||
cache: false
|
|
||||||
23
debian/Dockerfile
vendored
23
debian/Dockerfile
vendored
|
|
@ -1,16 +1,19 @@
|
||||||
FROM docker.io/debian:trixie-20250929-slim
|
FROM debian:12-slim as kubectl
|
||||||
ENV DEBIAN_FRONTEND=noninteractive
|
|
||||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
curl \
|
curl \
|
||||||
|
git \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
ENV K8S_VERSION=v1.27
|
||||||
|
RUN V="$(git ls-remote --tags --refs --sort=version:refname https://github.com/kubernetes/kubernetes "$K8S_VERSION.*" | awk -F/ 'END{print $NF}')" \
|
||||||
|
&& curl -Lo /kubectl "https://dl.k8s.io/release/$V/bin/linux/amd64/kubectl"
|
||||||
|
|
||||||
|
FROM debian:12-slim
|
||||||
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||||
|
ca-certificates \
|
||||||
gettext-base \
|
gettext-base \
|
||||||
git \
|
git \
|
||||||
openssh-client \
|
jq \
|
||||||
yq \
|
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
# https://dl.k8s.io/release/stable.txt
|
COPY --from=kubectl --chmod=0755 /kubectl /usr/local/bin/
|
||||||
RUN curl -sLo /usr/local/bin/kubectl \
|
|
||||||
"https://dl.k8s.io/release/v1.34.1/bin/linux/amd64/kubectl" \
|
|
||||||
&& chmod 0755 /usr/local/bin/kubectl
|
|
||||||
RUN useradd -m app
|
|
||||||
USER app
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue