From be1a4a658838f1d3b4c91c088f7935dc356490c1 Mon Sep 17 00:00:00 2001 From: pierre Date: Mon, 4 Nov 2024 10:54:35 +0000 Subject: [PATCH] add all the kubectl apply runners command --- .gitea/workflows/kubectl_runner.yaml | 41 ++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .gitea/workflows/kubectl_runner.yaml diff --git a/.gitea/workflows/kubectl_runner.yaml b/.gitea/workflows/kubectl_runner.yaml new file mode 100644 index 0000000..4f520eb --- /dev/null +++ b/.gitea/workflows/kubectl_runner.yaml @@ -0,0 +1,41 @@ +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 for Bitwarden + uses: actions-hub/kubectl@master + env: + KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }} + with: + args: apply -f bitwarden + - name: Perform kubectl tasks for Gitea + uses: actions-hub/kubectl@master + env: + KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }} + with: + args: apply -f Gitea + - name: Perform kubectl tasks for Nextcloud + uses: actions-hub/kubectl@master + env: + KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }} + with: + args: apply -f Nextcloud + - name: Perform kubectl tasks for Paperless + uses: actions-hub/kubectl@master + env: + KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }} + with: + args: apply -f Paperless + - run: echo "🍏 This job's status is ${{ job.status }}."