From 015bfdbd92bd351bb5aa85fe589cc3e19c974255 Mon Sep 17 00:00:00 2001 From: Quentin Campos Date: Tue, 21 Apr 2026 09:09:25 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=9A=20Move=20forgejo=20instance=20into?= =?UTF-8?q?=20subdirectory?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .forgejo/workflows/build.yaml | 15 +++++++++++++++ Dockerfile | 5 +++++ git-forgejo/{ => instance}/deployment.yaml | 0 git-forgejo/{ => instance}/ingress.yaml | 0 git-forgejo/{ => instance}/pvc.yaml | 0 git-forgejo/{ => instance}/service.yaml | 0 git-forgejo/{ns.yaml => namespace.yaml} | 0 7 files changed, 20 insertions(+) create mode 100644 .forgejo/workflows/build.yaml create mode 100644 Dockerfile rename git-forgejo/{ => instance}/deployment.yaml (100%) rename git-forgejo/{ => instance}/ingress.yaml (100%) rename git-forgejo/{ => instance}/pvc.yaml (100%) rename git-forgejo/{ => instance}/service.yaml (100%) rename git-forgejo/{ns.yaml => namespace.yaml} (100%) diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml new file mode 100644 index 0000000..253fba8 --- /dev/null +++ b/.forgejo/workflows/build.yaml @@ -0,0 +1,15 @@ +name: Build avec Kaniko +on: [push] + +jobs: + kaniko-build: + runs-on: k8s # Doit correspondre au label dans ta configmap + container: + image: gcr.io/kaniko-project/executor:debug + steps: + - name: Build et Push + run: | + /kaniko/executor \ + --context "${{ github.workspace }}" \ + --dockerfile "${{ github.workspace }}/Dockerfile" \ + --destination "git.qcampos.fr/${{ github.repository }}:latest" \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..182f813 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,5 @@ +FROM python:alpine + +RUN ["touch", "foo.txt"] + +CMD ["python", "-c", "'import this'"] \ No newline at end of file diff --git a/git-forgejo/deployment.yaml b/git-forgejo/instance/deployment.yaml similarity index 100% rename from git-forgejo/deployment.yaml rename to git-forgejo/instance/deployment.yaml diff --git a/git-forgejo/ingress.yaml b/git-forgejo/instance/ingress.yaml similarity index 100% rename from git-forgejo/ingress.yaml rename to git-forgejo/instance/ingress.yaml diff --git a/git-forgejo/pvc.yaml b/git-forgejo/instance/pvc.yaml similarity index 100% rename from git-forgejo/pvc.yaml rename to git-forgejo/instance/pvc.yaml diff --git a/git-forgejo/service.yaml b/git-forgejo/instance/service.yaml similarity index 100% rename from git-forgejo/service.yaml rename to git-forgejo/instance/service.yaml diff --git a/git-forgejo/ns.yaml b/git-forgejo/namespace.yaml similarity index 100% rename from git-forgejo/ns.yaml rename to git-forgejo/namespace.yaml