1

作者: 血无痕_4738 | 来源:发表于2020-06-01 21:12 被阅读0次

    job3:

      stage: deploy

      tags:

        - web #只有标签为XX的runner才会执行这个任务

    #  except: 

    #    - dev #除了dev分支,其它分支提交代码都会执行这个任务

      script:

        - mv  -f /home/gitlab-runner/builds/*/*/*/helloword/target/activiti-test-1.0-SNAPSHOT.jar /data/helloword/ && cp /data/Dockerfile /data/helloword && cd /data/hellord && docker build -t 192.168.136.134:5000/helloword:`date  +%Y%m%d%H%M` .

    Runner将会从远程仓库pull你的工程,工程的目录为:<working-directory>/builds/<short-token>/<concurrent-id>/<namespace>/<project-name>。

    Runner将会从远程仓库pull你的工程,工程的目录为:/builds////。

    作者:JerryShieh

    链接:

    https://www.jianshu.com/p/19fe0ce7ecec

    相关文章

      网友评论

          本文标题:1

          本文链接:https://www.haomeiwen.com/subject/jjbczhtx.html