Compare commits
10 commits
ad47b53fa0
...
f8f8c01a0b
Author | SHA1 | Date | |
---|---|---|---|
f8f8c01a0b | |||
7eea448720 | |||
6c0a8f7d4b | |||
91624ed7a9 | |||
e893466e86 | |||
de8000923a | |||
7320dc37ee | |||
ad23ec2d7f | |||
0923bb7500 | |||
fa2fd22b85 |
2 changed files with 12 additions and 17 deletions
|
@ -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
23
debian/Dockerfile
vendored
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue