gpt4 book ai didi

c# - 如何在 windows runner 服务器中运行 .drone.yml

转载 作者:行者123 更新时间:2023-12-03 23:42:42 29 4
gpt4 key购买 nike

我的项目(C# - .net 框架)的drone.yml。我的runner 服务器是windows,但我可以在服务器中运行.drone.pipeline 并获得错误权限被拒绝。(我的项目(c# -.net core)在linux runner 上运行服务器)。我无法在 linux runner 服务器上运行项目,因为我使用 .net 框架
我的无人机文件是:

 kind: pipeline
type: docker
name: default

steps:
- name: en
image: alpine
commands:
- echo hello
- echo world

- name: fr
image: alpine
commands:
- echo bounjour
- echo monde
when:
ref:
include:
- refs/heads/feature-*
exclude:
- refs/heads/**

最佳答案

对于 windows runner,你必须在你的无人机文件中使用一个平台,如以下代码:

platform:
os: windows
arch: amd64
此链接可能对您有帮助(示例):
.drone.yml

关于c# - 如何在 windows runner 服务器中运行 .drone.yml,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64820925/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com