WXCLOUD_ENVID: ${{ secrets.WXCLOUD_ENVID }} runs-on: ${{ fromJSON('["ubuntu-latest", "self-hosted"]')[github.repository == 'github/docs-internal'] }} steps: - name: Checkout uses: actions/checkout@v3 - name: Se
name:AworkflowformyHelloWorldfileon:pushjobs:build:name:Helloworldactionruns-on:ubuntu-lateststeps:- uses:actions/checkout@v1- uses:./action-awith:MY_NAME:"Mona" 請注意on:屬性。 這是指定此工作流程執行時間的觸發程序。 這會在您的存放庫有推送事件時觸發執行。 您可以指定單一事件...
name:AworkflowformyHelloWorldfileon:pushjobs:build:name:Helloworldactionruns-on:ubuntu-lateststeps:- uses:actions/checkout@v1- uses:./action-awith:MY_NAME:"Mona" 請注意on:屬性。 這是指定此工作流程執行時間的觸發程序。 這會在您的存放庫有推送事件時觸發執行。 您可以指定單一事...
name:GitHub Actions Demoon:[push]jobs:Explore-GitHub-Actions:runs-on:ubuntu-lateststeps:-run:echo " The job was automatically triggered by a ${{ github.event_name }} event."-run:echo " This job is now running on a ${{ runner.os }} server hosted by GitHub!"-run:echo " The name o...
修改流水线定义,将runs-on指定为[self-hosted, linux, X64]: custom labels 然后可以查看作业成功调度到该 runner 上运行: schedule job 现在再去看 pod 的状态,其中的runner容器是Completed: kubectlgetpods-lactions-runner=""-nactions-runner-system NAMEREADYSTATUSRESTARTSAGE building-runner1/2Running03m53s...
name:buildon:[push]jobs:build:runs-on:ubuntu-lateststeps:-name:Checkoutuses:actions/checkout@v2-name:Build imagerun:make build-name:Login Registryuses:docker/login-action@v1with:registry:ghcr.iousername:${{github.repository_owner}}password:${{secrets.GHCR_TOKEN}}-name:Push imagerun:docker ...
runs-on: [self-hosted, linux] 更多信息请参阅“关于自托管的运行器”和“在工作流程中使用自托管的运行器”。 jobs.<job_id>.outputs 作业的输出 map。 作业输出可用于所有依赖此作业的下游作业。 有关定义作业依赖项的更多信息,请参阅 jobs.<job_id>.needs。 作业输出是字符串,当每个作业结束时,在运行...
需要更大的存储空间(官方的 GitHub Actions 只有 15G 不到的可用空间) 这种时候,我们就需要使用 Self-hosted Runner,什么是 Self-hosted Runner? Self-hosted runners offer more control of hardware, operating system, and software tools than GitHub-hosted runners provide. With self-hosted runners, you can...
GitHub provides Linux, Windows, and macOS virtual machines to run your workflows, or you can host your own self-hosted runners in your own data center or cloud infrastructure. The components of GitHub Actions You can configure a GitHub Actionsworkflowto be triggered when aneventoccurs in your ...
jobs.<job_id>.runs-on runs-on字段指定运行所需要的虚拟机环境 目标机器可以是GitHub-hosted runner、larger runner和self-hosted runner。 您可以根据分配给runners的标签,或他们的组成员资格,或这些的组合来定位runners。 您可以将run-on作为单个字符串或字符串数组提供。