From 18265ca118737b23b67aa55ebd3c68e5ce146a21 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 01:14:58 +0800 Subject: [PATCH] fix runs-on --- .gitea/workflows/ci.yaml | 10 ++++------ .gitea/workflows/test.yaml | 4 ++-- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 418ad5a..6e9a241 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -19,8 +19,7 @@ env: jobs: build: - runs-on: k8s # <-- Used runner label - container: ghcr.m.daocloud.io/catthehacker/ubuntu:custom-20.04-20240401 + runs-on: ubuntu-latest steps: # - name: 环境检测 # run: | @@ -68,8 +67,8 @@ jobs: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} gtiops: - runs-on: k8s # <-- Used runner label - container: ghcr.m.daocloud.io/catthehacker/ubuntu:custom-20.04-20240401 + runs-on: ubuntu-latest + if: ${{ success() }} needs: [build] @@ -86,8 +85,7 @@ jobs: token: ${{ secrets.GITOPS_TOKEN }} 微信通知: - runs-on: k8s # <-- Used runner label - container: ghcr.m.daocloud.io/catthehacker/ubuntu:custom-20.04-20240401 + runs-on: ubuntu-latest if: ${{success()}} needs: [build, gtiops] diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml index a9134e8..cbe598a 100644 --- a/.gitea/workflows/test.yaml +++ b/.gitea/workflows/test.yaml @@ -9,8 +9,8 @@ env: DOMAIN: gitea.lntu.edu.cn jobs: Explore-Gitea-Actions: - runs-on: k8s # <-- Used runner label - container: ubuntu + runs-on: ubuntu-latest + # container: ${{ env.DOMAIN }}/youling/devops steps: - run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event."