欢迎来到飞鸟慕鱼博客,开始您的技术之旅!
当前位置: 首页知识笔记正文

rancher6的怪物学院,slime rancher官网

终极管理员 知识笔记 80阅读
一、注意点

其实下文二的image是基于这个镜像作为基础镜像在这个镜像中执行打包shellScript 当前路径是你代码块与上图settings.xml图中的settings.xml可以替换下你当前镜像的settings.xml

示例

二、.rancher-pipeline.yml

${CICD_GIT_BRANCH}这些从官网可以看到对应的参数解释

stages:- name: 扫描编译  steps:  - runScriptConfig:      image: zhang2035005702/maven-jdk:v1.8      shellScript: |-        mvn clean install -DskipTeststrue -T 2.0C- name: 网关镜像打包  steps:  - publishImageConfig:      dockerfilePath: ./Dockerfile-GW # 这是dockerfile的路径      buildContext: .      tag: shop/gw:${CICD_GIT_BRANCH}-${CICD_GIT_COMMIT}      #可选项推送镜像到远程镜像库      pushRemote: true      registry: xxxx.com    env:      PLUGIN_DEBUG: true      PLUGIN_INSECURE: true- name: 认证组件镜像打包  steps:  - publishImageConfig:      dockerfilePath: ./Dockerfile-AUTH      buildContext: .      tag: shop/auth:${CICD_GIT_BRANCH}-${CICD_GIT_COMMIT}      pushRemote: true      registry: xxxx.com    env:      PLUGIN_DEBUG: true      PLUGIN_INSECURE: true- name: 应用发布  steps:  - applyYamlConfig:      path: ./deployment.yamltimeout: 60notification: {}

标签:
声明:无特别说明,转载请标明本文来源!