From 0e04377dd5ec3baa41352df8495180e0cec9f305 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=83=E9=87=8C=E8=B5=B0=E5=8D=95=E9=AA=91?= Date: Wed, 3 Apr 2024 00:45:44 +0800 Subject: [PATCH] fix on k8s --- .gitea/workflows/ci.yaml | 11 ++++++----- .gitea/workflows/test.yaml | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 137204a..15b4b0e 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -19,9 +19,8 @@ env: jobs: build: - runs-on: ubuntu-latest - container: - image: ghcr.m.daocloud.io/catthehacker/ubuntu:act-latest + runs-on: k8s # <-- Used runner label + container: ubuntu steps: # - name: 环境检测 # run: | @@ -69,7 +68,8 @@ jobs: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} gtiops: - runs-on: ubuntu-latest + runs-on: k8s # <-- Used runner label + container: ubuntu if: ${{ success() }} needs: [build] @@ -86,7 +86,8 @@ jobs: token: ${{ secrets.GITOPS_TOKEN }} 微信通知: - runs-on: ubuntu-latest + runs-on: k8s # <-- Used runner label + container: ubuntu if: ${{success()}} needs: [build, gtiops] diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml index abd28db..a9134e8 100644 --- a/.gitea/workflows/test.yaml +++ b/.gitea/workflows/test.yaml @@ -1,6 +1,6 @@ name: Gitea Actions Demo run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀 -on: [push] +# on: [push] env: # DOCKER_REGISTRY: docker.io # DOCKER_USERNAME: softyouling