GithubHelp home page GithubHelp logo

deployment-waiter's Introduction

deployment-waiter (from Rancher-cli2)

Description

Base on alpine image and bash, install rancher-cli (rancher-linux-amd64-v2.4.6.tar.gz) and kubectl (v1.19.0) command. It can be used in Rancher-pipline.yaml.

Image pool

https://hub.docker.com/repository/docker/iiiorg/deployment-waiter

How to use in rancher-pipeline.yaml

Rancher-pipeline.yaml


stages:
- name: This is Deploy stage
  steps:
  - applyAppConfig:
      catalogTemplate: cattle-global-data:iii-dev-charts3-web
      version: 0.4.0
      name: ${CICD_GIT_REPO_NAME}-${CICD_GIT_BRANCH}-serv
  ...
- name: Block until deployment is ready
  steps: 
  -  runScriptConfig:
      image: iiiorg/deployment-waiter:0.0.1
      shellScript: >-
        rancher login ${rancher_url} -t ${rancher_api_token} --skip-verify;
        bash /app/run.sh;
    env:
      namespace: ${CICD_GIT_REPO_NAME}
      deploy_name: ${CICD_GIT_REPO_NAME}-${CICD_GIT_BRANCH}-serv  # As same as the chart release name in deploy stage
    envFrom:
    - sourceName: pipeline-api-key
      sourceKey: API_TOKEN
      targetKey: rancher_api_token
    - sourceName: rancher
      sourceKey: rancher-url
      targetKey: rancher_url

deployment-waiter's People

Contributors

demoyuw avatar

Watchers

Jonathan Tsai avatar Joseph Huang 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.