1 Star 0 Fork 0

xzjie/concourse-k8s-deploy-pipeline

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
pipeline.yml 1.08 KB
一键复制 编辑 原始数据 按行查看 历史
xzjie 提交于 2021-01-29 17:30 . [featrue] 自动化部署k8s
resource_types:
- name: kubernetes
type: docker-image
source:
repository: zlabjp/kubernetes-resource
tag: "{{kubernetes-version}}"
resources:
- name: kubernetes-cluster
type: kubernetes
icon: kubernetes
source:
insecure_skip_tls_verify: {{kubernetes-skip-tls-verification}}
kubeconfig: {{kubernetes-config}}
context: {{kubernetes-context}}
namespace: {{kubernetes-namespace}}
# - name: container-image
# type: docker-image
# icon: docker
# source:
# repository: ((container-image))
- name: repo
type: git
source:
uri: ((app-url))
branch: ((app-branch))
private_key: ((app-private-key))
jobs:
- name: deploy-latest-container-image
plan:
#- aggregate:
- get: repo
# - get: container-image
trigger: true
params:
skip_download: true
- put: kubernetes-cluster
params:
kubectl: apply -f repo/app.yml
# kubectl: |
# set image deployment ((kubernetes-deployment)) ((kubernetes-container))=$(cat container-image/repository)@$(cat container-image/digest)
wait_until_ready: {{kubernetes-wait-until-ready}}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xzjie/concourse-k8s-deploy-pipeline.git
git@gitee.com:xzjie/concourse-k8s-deploy-pipeline.git
xzjie
concourse-k8s-deploy-pipeline
concourse-k8s-deploy-pipeline
master

搜索帮助