您好,登錄后才能下訂單哦!
這篇文章主要介紹docker如何配置Runner容器,文中介紹的非常詳細(xì),具有一定的參考價(jià)值,感興趣的小伙伴們一定要看完!
mk@mk-pc:~/桌面$ docker run -di --name my-runner --net my-gitlab-net gitlab/gitlab-runner:latest addc6e08521a6f707494c7a05e63670331c76baaf261282bdd17e2e24268583b
root@addc6e08521a:/# gitlab-runner register Runtime platform arch=amd64 os=linux pid=262 revision=4b9e985a version=14.4.0 Running in system-mode. Enter the GitLab instance URL (for example, https://gitlab.com/): http://192.168.88.2/ Enter the registration token: mqL7CpxduBkV55pEwo7A Enter a description for the runner: [addc6e08521a]: my first runner Enter tags for the runner (comma-separated): dockercicd Registering runner... succeeded runner=mqL7Cpxd Enter an executor: docker, parallels, ssh, custom, shell, virtualbox, docker+machine, docker-ssh+machine, kubernetes, docker-ssh: docker Enter the default Docker image (for example, ruby:2.6): app Runner registered successfully. Feel free to start it, but if it's running already the config should be automatically reloaded! root@addc6e08521a:/#
.gitlab-ci.yml
stages: - build - deploy build: stage: build tags: - build only: - dev script: - echo "mvn clean" - echo "mvn install" deploy: stage: deploy tags: - deploy only: - dev script: - echo "java -jar dxxx"
運(yùn)行流水線
以上是“docker如何配置Runner容器”這篇文章的所有內(nèi)容,感謝各位的閱讀!希望分享的內(nèi)容對(duì)大家有幫助,更多相關(guān)知識(shí),歡迎關(guān)注億速云行業(yè)資訊頻道!
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。