first commit
This commit is contained in:
commit
2c02333ad8
15
.gitea/workflows/build.yaml
Normal file
15
.gitea/workflows/build.yaml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
name: test
|
||||||
|
|
||||||
|
on: push
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: test
|
||||||
|
runs-on: debian
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v1
|
||||||
|
- uses: actions/kaniko@v1
|
||||||
|
with:
|
||||||
|
dockerfile: debian/Dockerfile
|
||||||
|
image: gmoker/debian:latest
|
||||||
|
password: "${{ secrets.PKGRW }}"
|
19
debian/Dockerfile
vendored
Normal file
19
debian/Dockerfile
vendored
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
FROM debian:12-slim as kubectl
|
||||||
|
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
|
||||||
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||||
|
ca-certificates \
|
||||||
|
gettext-base \
|
||||||
|
git \
|
||||||
|
jq \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
COPY --from=kubectl --chmod=0755 /kubectl /usr/local/bin/
|
Loading…
Reference in New Issue
Block a user