Giter Site home page Giter Site logo

cicd-demo's Introduction

Github-actions CICD DEMO

Demo Repo for Github-actions CICD Demo

Steps to use Github-actions as cicd:

Step-1: Fork this repo

Step-2:

  • To use github-actions, go to Settings > Security > Secrets > Actions and add 2 secrets with the following names: API_KEY_ID with the Intersight API Key SECRET_KEY with the Intersight SecretKey.txt file output.

Step-3:

  • Install a self-hosted runner locally.
  • Go to Settings > Code and Automation > Actions > Runners tab and click on "New self-hosted runner" to get instructions on how to install a self-hosted runner.
  • Once the runner is installed and running, go to Settings > Code and Automation > Actions > Runners tab and you should see the runner in idle status.
  • Additionally, we need to ensure the required tools are installed on the runner host to execute workflows.
  • For example, if you want to run terraform commands, you need to have terraform pre-installed on the runner host before the workflow is triggered.
  • In this repo, I am using a etcd3 as the backend for terraform. Create a etcd docker container on the same host using https://hub.docker.com/r/bitnami/etcd/

Step-4:

  • Ensure the runner tags are the same as defined in .github/workflows/github-actions.yml. If not, update "runs-on:" parameter with your runner tag values.

Step-5:

  • Any config push to the repo should trigger github-actions workflow and we should see a NTP resource created defined in variables file.

cicd-demo's People

Contributors

sandkum5 avatar

Watchers

 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.