From 2c02333ad8b6f229ea692dc59627f16938c38fad Mon Sep 17 00:00:00 2001 From: ange Date: Tue, 30 Apr 2024 18:54:18 +0200 Subject: [PATCH] first commit --- .gitea/workflows/build.yaml | 15 +++++++++++++++ README.md | 1 + TODO | 2 ++ debian/Dockerfile | 19 +++++++++++++++++++ 4 files changed, 37 insertions(+) create mode 100644 .gitea/workflows/build.yaml create mode 100644 README.md create mode 100644 TODO create mode 100644 debian/Dockerfile diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml new file mode 100644 index 0000000..f73de71 --- /dev/null +++ b/.gitea/workflows/build.yaml @@ -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 }}" diff --git a/README.md b/README.md new file mode 100644 index 0000000..2b121c6 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# runner_images diff --git a/TODO b/TODO new file mode 100644 index 0000000..5bb74f0 --- /dev/null +++ b/TODO @@ -0,0 +1,2 @@ +k8s deploy? +restart runners? diff --git a/debian/Dockerfile b/debian/Dockerfile new file mode 100644 index 0000000..0b169e1 --- /dev/null +++ b/debian/Dockerfile @@ -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/