# Replace ${arch} with any of the supported architectures, e.g. amd64, arm, a rm64
# A full list of architectures can be found here https://gitlab-runner-downloads.s3.amazonaws .com/ latest/ index,html
curl -LJ0 "https://gitlab-runner-downloads:s3.amazonaws.com/latest/deb/gitlab-runner.${arch}.deb"
# Replace ${arch} with any of the supported architectures, e.g. amd64, arm, arm64
# A full list of architectures can be found here https://gitlab-runner-down loads,s3,amazonaws。
com/ latest/ index. html
curl -LJ0 "https://gitLab-runner-downloads.s3.amazonaws.com/latest/rpm/gitLab-runner_${arch} rpm"
dpkg -i gitlab-runner_<arch>.deb
rpm -i git Lab-runner_<arch>.rpm

sudo gitltb-runner register \
- -non- interactive \
--url "http://git lab. mczaiyun. top/" \
-- regist ration-token "Hxtkz2LXx6_Vqox9W-mz" \
- executor "shell" \
--docker- image alpine: latest \
-- description "shell-runner" \
--tag-list "shell, 0704" \
-- run-untagged="true" \
--locked="false" \
--access-level="not protected"

查看所有的runner:Setting->CI/CD->Runners,点击Expand
job1:
tags:
- '0704'
script: echo 'hello shell'

在服务器上可以看到,oGZ8JyjC代表token,0代表任务id;
job执行完毕后,代码会留在服务器上

The Shell executor

修改并发数为10

eg:
job1:
tags:
- '0704'
script: echo 'hello shell'
job2:
tags:
- '0704'
script: echo 'hello shell bash'
连续触发两次流水线


