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