Compare commits

...

10 commits

Author SHA1 Message Date
f8f8c01a0b
fix: replace gitea by forgejo
All checks were successful
/ build (push) Successful in 56s
2025-10-22 03:56:39 +00:00
7eea448720
feat: yq 2025-10-19 17:41:28 +00:00
6c0a8f7d4b
docs: add link to kubectl latest 2025-10-19 17:16:08 +00:00
91624ed7a9
bump: trixie-20250929-slim 2025-10-04 18:03:45 +00:00
e893466e86
feat: openssh-client 2024-11-18 10:41:33 +00:00
de8000923a
feat: disable registry cache 2024-10-09 07:35:19 +07:00
7320dc37ee
fix: curl --create-file-mode !local 2024-05-10 12:55:19 +02:00
ad23ec2d7f
feat: curl 2024-05-10 12:43:39 +02:00
0923bb7500
feat: kubectl 2024-05-10 12:39:43 +02:00
fa2fd22b85
feat: remove kubectl from base image 2024-05-10 12:01:12 +02:00
2 changed files with 12 additions and 17 deletions

View file

@ -1,15 +1,13 @@
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/kaniko@v1 - uses: actions/buildkit@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
View file

@ -1,19 +1,16 @@
FROM debian:12-slim as kubectl FROM docker.io/debian:trixie-20250929-slim
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
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 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 \
gettext-base \ gettext-base \
git \ git \
jq \ openssh-client \
yq \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
COPY --from=kubectl --chmod=0755 /kubectl /usr/local/bin/ # https://dl.k8s.io/release/stable.txt
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