add act-runners/kubectl-mini image and gitea workflow
act-fatboy.yml / build-container-image (push) Successful in 1m55s
act-runner-fatboy-deploy.yml / build-container-image (push) Successful in 1m31s
act-runner-kubectl-mini.yml / build-container-image (push) Successful in 28s

This commit is contained in:
Márcio Fernandes
2026-09-03 20:18:02 +01:00
parent d811754110
commit d399d6118a
2 changed files with 67 additions and 0 deletions
@@ -0,0 +1,26 @@
on:
push:
branches:
- main
schedule:
- cron: '@weekly' # once per week
jobs:
build-container-image:
runs-on: ["oci-image-builder", "amd64"]
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Build and push Docker Image
uses: ./.gitea/limbo_actions/buildkit-build-push
with:
registry_addr: ${{ vars.OCI_LIMBO_REGISTRY_ADDRESS }}
registry_username: ${{ secrets.OCI_LIMBO_REGISTRY_USERNAME }}
registry_password: ${{ secrets.OCI_LIMBO_REGISTRY_PASSWORD }}
buildkit_addr: ${{ vars.BUILDKIT_ADDRESS }}
context: ${{gitea.workspace}}/act-runners/kubectl-mini
dockerfile: ${{gitea.workspace}}/act-runners/kubectl-mini
tags: oci.limbosolutions.com/public/act-runners/kubectl-mini:3.0.2
+41
View File
@@ -0,0 +1,41 @@
ARG ACT_RUNNER_VERSION=3.0.2
# STAGE 1 — BUILDER
FROM alpine:3.20 AS builder
ARG ACT_RUNNER_VERSION
RUN apk add --no-cache curl unzip
# Kubectl
RUN curl -Lo /tmp/kubectl \
"https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl" \
&& chmod +x /tmp/kubectl
ARG ACT_RUNNER_VERSION
# ACT Runner
RUN curl -sSLO "https://dl.gitea.com/gitea-runner/${ACT_RUNNER_VERSION}/gitea-runner-${ACT_RUNNER_VERSION}-linux-amd64" \
&& curl -sSLO "https://dl.gitea.com/gitea-runner/${ACT_RUNNER_VERSION}/gitea-runner-${ACT_RUNNER_VERSION}-linux-amd64.sha256" \
&& sed -i '/found/d' "gitea-runner-${ACT_RUNNER_VERSION}-linux-amd64.sha256" \
&& sha256sum -c "gitea-runner-${ACT_RUNNER_VERSION}-linux-amd64.sha256" \
&& install -m 0755 "gitea-runner-${ACT_RUNNER_VERSION}-linux-amd64" /tmp/gitea-runner
# --------------------------------------------------------------------
# STAGE 2 — FINAL IMAGE
# --------------------------------------------------------------------
FROM alpine:3.20
COPY --from=builder /tmp/kubectl /usr/local/bin/kubectl
COPY --from=builder /tmp/gitea-runner /usr/local/bin/act_runner
RUN addgroup -g 1000 kube \
&& adduser -D -u 1000 -G kube -s /bin/ash kube \
&& mkdir -p /home/kube \
&& chown -R kube:kube /home/kube
USER kube
WORKDIR /home/kube
ENTRYPOINT ["/usr/local/bin/act_runner"]