gitlab---runner

gitlab-runner register
--non-interactive
--executor "shell"
--url "http://10.72.42.125/"
--registration-token "c64FE96owg3_MjBg4Z-X"
--description "devops-runner"
--tag-list "devrunner,uatrunner"
--run-untagged="true"
--locked="false"
--access-level="not_protected"

`stages:

  • build
  • deploy

build:
stage: build
tags:
- build
only:
- master
script:
- echo "mvn clean"
- echo "mvn install"

deploy:
stage: deploy
tags:
- deploy
only:
- master
script:
- echo "hello deploy"`

posted @ 2021-07-06 18:11  lavida2000  阅读(85)  评论(0)    收藏  举报