Skip to content
代码片段 群组 项目
提交 b68e6dd8 编辑于 作者: Fiona Neill's avatar Fiona Neill
浏览文件

Merge branch 'pedropombeiro/fix-curl-command' into 'master'

Improve curl command in documentation

See merge request https://gitlab.com/gitlab-org/gitlab/-/merge_requests/122941



Merged-by: default avatarFiona Neill <fneill@gitlab.com>
Approved-by: default avatarVladimir Shushlin <vshushlin@gitlab.com>
Approved-by: default avatarFiona Neill <fneill@gitlab.com>
Co-authored-by: default avatarPedro Pombeiro <noreply@pedro.pombei.ro>
No related branches found
No related tags found
无相关合并请求
......@@ -141,8 +141,7 @@ or [Personal Access Tokens](../../user/profile/personal_access_tokens.md):
# The output will be parsed by `jq` to extract the token of the newly created runner
RUNNER_TOKEN=$(curl --silent --method POST "https://gitlab.com/api/v4/user/runners" \
--header "private-token: $GITLAB_TOKEN" \
--header 'content-type: application/json' \
--data "{\"runner_type\":\"group_type\",\"group_id\":\"$GROUP_ID\",\"description\":\"My runner\",\"tag-list\":\"java,linux\"}" \
--data runner_type=group_type --data group_id=$GROUP_ID --data 'description=My runner' --data 'tag_list=java,linux' \
| jq -r '.token')
gitlab-runner register
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册