.rancher

编程入门 行业动态 更新时间:2024-10-28 20:16:39

.<a href=https://www.elefans.com/category/jswz/34/1759265.html style=rancher"/>

.rancher

一、注意点

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

示例

二、.rancher-pipeline.yml

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

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

更多推荐

.rancher

本文发布于:2023-12-04 00:47:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1659263.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:rancher

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!