Back to Templates

GitHub Actions CI/CD Pipeline

Created by Bolum Team
Updated: 4/5/2024
1245
CI/CDGitHub ActionsDevOps

Automate your entire software delivery pipeline with GitHub Actions.

This template provides a battle-tested CI/CD workflow that builds, tests, scans for vulnerabilities, and deploys your application automatically.

What This Template Does

1
Triggers on push to main and pull requests
2
Runs automated tests with coverage reporting
3
Builds and tags Docker images
4
Scans images for vulnerabilities with Trivy
5
Deploys to staging and production environments
6
Sends Slack notifications on success/failure

How to Set It Up

1

Copy workflow file

Copy the .github/workflows/ci-cd.yml file to your repository.

2

Configure secrets

Add required secrets: DOCKER_REGISTRY, KUBE_CONFIG, SLACK_WEBHOOK.

3

Update image names

Replace placeholder image names with your container registry paths.

4

Customize stages

Modify the deployment stages to match your environments.

5

Push and test

Push to trigger the workflow and verify it runs correctly.

Tools Used

GitHub ActionsDockerKubernetesTrivySlack

Ready to use this template?

Our team will help you customize and deploy it for your infrastructure.