From b22d3d6a28080df34f35de94781ca25b983733de Mon Sep 17 00:00:00 2001 From: pierre Date: Wed, 30 Oct 2024 11:17:39 +0000 Subject: [PATCH] separate the runners --- .../{runner.yaml => dockerfile_runner.yaml} | 15 ++++++------ .gitea/workflows/kubectl_runner.yaml | 23 +++++++++++++++++++ 2 files changed, 31 insertions(+), 7 deletions(-) rename .gitea/workflows/{runner.yaml => dockerfile_runner.yaml} (85%) create mode 100644 .gitea/workflows/kubectl_runner.yaml diff --git a/.gitea/workflows/runner.yaml b/.gitea/workflows/dockerfile_runner.yaml similarity index 85% rename from .gitea/workflows/runner.yaml rename to .gitea/workflows/dockerfile_runner.yaml index 0b355d5..d4774f2 100644 --- a/.gitea/workflows/runner.yaml +++ b/.gitea/workflows/dockerfile_runner.yaml @@ -1,6 +1,13 @@ name: Gitea Actions Demo run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀 -on: [push] +on: + push: + branches: + - "*" + paths: + - 'dockerfile' + tags-ignore: + - '*' jobs: Explore-Gitea-Actions: @@ -30,10 +37,4 @@ jobs: tags: gitea.tryton.geeraert.eu/pi-ux-ce/nextcloud_ics_sync:latest - - name: Perform kubectl tasks - uses: actions-hub/kubectl@master - env: - KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }} - with: - args: apply -f . - run: echo "🍏 This job's status is ${{ job.status }}." diff --git a/.gitea/workflows/kubectl_runner.yaml b/.gitea/workflows/kubectl_runner.yaml new file mode 100644 index 0000000..326909b --- /dev/null +++ b/.gitea/workflows/kubectl_runner.yaml @@ -0,0 +1,23 @@ +name: Gitea Actions Demo +run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀 +on: [push] + +jobs: + Explore-Gitea-Actions: + runs-on: ubuntu-latest + steps: + - run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}." + - name: Check out repository code + uses: actions/checkout@v4 + - run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner." + - name: List files in the repository + run: | + ls ${{ gitea.workspace }} + + - name: Perform kubectl tasks + uses: actions-hub/kubectl@master + env: + KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }} + with: + args: apply -f . + - run: echo "🍏 This job's status is ${{ job.status }}."