From b8f57a8aa15bf17f104877311287d7fe929fc1b7 Mon Sep 17 00:00:00 2001 From: Pierre-Arthur Mathieu Date: Mon, 10 Mar 2025 00:55:39 +0100 Subject: [PATCH] test --- .gitea/workflows/demo.yaml | 41 +++++++++++++++++++++++++++----------- 1 file changed, 29 insertions(+), 12 deletions(-) diff --git a/.gitea/workflows/demo.yaml b/.gitea/workflows/demo.yaml index 312b14f..e957285 100644 --- a/.gitea/workflows/demo.yaml +++ b/.gitea/workflows/demo.yaml @@ -5,8 +5,25 @@ jobs: build: runs-on: ubuntu-latest steps: - - name: Check out repository code - uses: actions/checkout@v4 + - name: Check out repository code + uses: actions/checkout@v4 + + - name: Set K8S context + uses: azure/k8s-set-context@v1 + with: + method: kubeconfig + kubeconfig: ${{ secrets.KUBE_CFG }} + + - name: Install Kubectl + uses: azure/setup-kubectl@v4 + + - uses: azure/k8s-create-secret@v2 + with: + namespace: 'default' + secret-type: 'generic' + secret-name: basic-auth + data: + auth: ${{ secrets.BASIC_AUTH }} # - name: Build docker image # uses: https://code.thetadev.de/ThetaDev/action-kaniko@v1 @@ -18,13 +35,13 @@ jobs: # password: ${{ secrets.PAT_TOKEN }} # platforms: "linux/arm64" # extra_args: "--insecure" - - - name: Build docker image - uses: aevea/action-kaniko@master - with: - registry: "git.plop.in" - image: admin/test - username: admin - password: ${{ secrets.PAT_TOKEN }} - #extra_args: "--insecure --insecure-registry git.plop.in" - extra_args: "--insecure" +# +# - name: Build docker image +# uses: aevea/action-kaniko@master +# with: +# registry: "git.plop.in" +# image: admin/test +# username: admin +# password: ${{ secrets.PAT_TOKEN }} +# #extra_args: "--insecure --insecure-registry git.plop.in" +# extra_args: "--insecure"