gpt4 book ai didi

gitlab - 此 GitLab CI 配置无效 : root config contains unknown keys: tags

转载 作者:行者123 更新时间:2023-12-05 06:15:26 30 4
gpt4 key购买 nike

我正在尝试在 Gitlab 上运行一个简单的 python 项目。我在 EC2 实例上设置了一个运行器,我正在尝试将它用于该项目。这是 .gitlab-ci.yml 文件:

tags:
- gr
- grun
- runner
stages:
- build
build:
image: python:3.7
script:
- echo "building"
- pip install -r requirements.txt
- python test.py

我收到这个错误-

 This GitLab CI configuration is invalid: root config contains unknown keys: tags

我在 .gitlab-ci.yml 文件中使用作业和环境时遇到同样的错误。运行者是活跃的。如何解决这个问题?

最佳答案

如果您看到 Ci Gitlab 文档,标签不是根配置。

https://docs.gitlab.com/ee/ci/yaml/#tags

关于gitlab - 此 GitLab CI 配置无效 : root config contains unknown keys: tags,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62535995/

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