Skip to content
This repository has been archived by the owner on Jul 10, 2023. It is now read-only.

InfoMSandbox1/ci-cd-demo

Repository files navigation

CI/CD Demo!!!!!!!!!!!!!!!!!!!

Demo repository for using GitHub Actions in a CI/CD context.

💡 To control cost and complexity, the demo does not as of now deploy any code to a cloud environment. The main aim is to show additional CI/CD capabilities using GitHub Actions syntax.

  • This is a template repository
  • This demo contains GHEC/GHES-specific features
    • The Environments feature is only available for GHEC, GHES (>=v3.1), and public repositories
  • If you have a GHEC organization available, then please click Use this template to clone the repo into that organization
  • If you do not have a GHEC organization available, please run the demo in this repository. Just make sure to complete the Cleanup steps afterwards 🏡

Usage

Trigger CI

  1. Walk through the CI workflow and explain the CI capabilities and syntax (linting, build matrix, ...)
  2. Make a change e.g. add a new file or make a change to an existing test file
  3. Commit the change to a new branch
  4. Create a new PR
  5. Observe the CI workflow triggering

Trigger CD

  1. Walk through the CD workflow and explain the CD capabilities and syntax (environments, concurrency, ...)
  2. Merge the PR
  3. Observe the CD workflow triggering
  4. Show the deployment history for the repository

Branch protection rules

  1. Go to repository Settings --> Branches
  2. Show how specific jobs can be added as branch protection rules to a branch
    • Add a new rule e.g. for main where e.g. the lint job is required to pass

🏡 Cleanup

  1. If the workflow was run in this repository, perform the following steps:
    • Delete any branch protections rules created
    • Ensure any PRs created are closed/merged

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published