Skip to content

CI CD pipeline using GitHub Actions

Gauri Pandharinath Bodke edited this page Jun 15, 2022 · 1 revision

CI/CD pipeline using GitHub Actions

Results summary:

CI/CD pipeline summary

Architecture

CI/CD pipeline architecture

Description

  • CI/CD pipeline achieved using GitHub Actions. The pipeline gets triggered whenever someone makes a commit or a pull request to the main branch.
  • Pipeline consists of three stages: build, test, and deploy.
    • build:
      • Builds angular and golang application.
      • Stores golang application build as an artifact.
    • test:
      • Performs API testing using Newman CLI tool.
      • Sensitive data such as AWS credentials and application secret key are stored as GitHub secrets. It creates a .env file using those secrets before running an application.
      • Stores API testing report as an artifact.
      • In case of a pull request, it proceeds irrespective of the result of video module creation API, because GitHub secrets (and hence AWS credentials) are not accessible by the pull requests.
    • deploy:
      • Uses AWS CodeDeploy to push code from Github repository to AWS EC2 instance.
Clone this wiki locally