fix on k8s

This commit is contained in:
千里走单骑 2024-04-03 00:45:44 +08:00
parent 22fbad3dd3
commit 0e04377dd5
2 changed files with 7 additions and 6 deletions

View File

@ -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]

View File

@ -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