GithubHelp home page GithubHelp logo

risingwen / easy-chatops-devopschina-2021 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from shadowmanportfolio/easy-chatops-devopschina-2021

0.0 0.0 0.0 173 KB

项目用途:基于Tekton、ArgoCD和GitHub Action的简单ChatOps发布自动化演示

Mustache 67.66% Go 26.65% Shell 5.68%

easy-chatops-devopschina-2021's Introduction

基于Tekton、ArgoCD和GitHub Action的简单ChatOps发布自动化

先决条件

  1. OpenShift集群,并在代码库中命名以下GitHub Repository Secrets 作为集群的登录凭证。
  • OPENSHIFT_PASSWORD
  • OPENSHIFT_SERVER
  1. 在OpenShift中部署ArgoCD,并将本代码库地址加入进来。
  2. 在OpenShift中部署Tekton,并把预先准备好的 Tasks 和 Pipelines 部署进来。
  3. 配置Github 个人访问 Token ,将 Token 值创建 GitHub Repository Secret 名为: SLASH_TOKEN。此 Secret 供 chatops slash commands 使用来访问代码库。

说明

这个样例代码库是根据 基于 trunk 的开发 理念设计的。

运行机制

通过 GitHub Action .github/workflows/tekton-build.yaml 来监听 src 目录的代码修改,驱动集群内就绪的 Tekton 进行构建。

一但准备好交付,创建一个 Issue (点击此链接 Release Issue template 查看详细操作说明)

/release 命令用于为版本打标签
/promote 命令用于切换适用的 ArgoCD 配置来指向新的标签
/deploy 命令用过于驱动 ArgoCD Application ,详细参见社区文档

引用的 GitHub Actions 来源:

引用的 Tekton Tasks & Pipelines 来源:

easy-chatops-devopschina-2021's People

Contributors

pcarney8 avatar sammzhu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.