Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork28
Reusable GitHub Actions workflow examples for cloud native DevOps
License
BretFisher/github-actions-templates
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
These workflow examples comprise three parts:
.github/workflows/reusable-*.yaml- Designed to be reusable as a "called" workflow, and has aworkflow_callevent in it. They would exist in a central repository and called by other repositories. The central repository needs to bepublic,internal, orprivateand enabled for GitHub Actions sharing in repository Settings.templates/call-*.yaml- these are the "calling" templates that you would copy to all your code and IaC repositories. Each of their jobs has the specialuses: <github-path>to point to the reusable workflow..github/workflows/call-local*.yaml- For testing. Calls a local workflow in the same directory. ProTip: Make tests for your reusable workflows! Either in the same repository as this one shows, or from a separate repository full of tests. You'll thank me later.
⚠️ DO NOT call this workflow directly, rather, use it as a template repository and fork it for your own reusable workflow. I might change this workflow at anytime, based on new GHA features or learnings, and your calling workflow might break.⚠️
.github/dependabot.ymlwill make PRs for version updates to your Actionsand Dockerfiles..github/linters/stores linter configs used by Super-Linter. ProTip: symlink these to the preferred location to use the same linters locally.templates/call-super-linter.yamlis a workflow that calls Super-Linter, which I'm storing the full reusable workflow inbretfisher/super-linter-workflow.templates/call-docker-build.yamlis a workflow that calls a Docker build (awesomesauce!), which I'm storing the full reusable workflow inbretfisher/docker-build-workflow.templates/call-docker-build-promotion.yamlis an advanced workflow that calls a build workflow on PR, and then on merge it will call that workflow with different values andalso creates a GitOps-style PR to deploy the new image to a Kubernetes cluster.templates/call-snyk-scan-image.yamlis a workflow that calls aSnyk scanin this repository.templates/call-trivy-scan-image.yamlis a workflow that calls a reusableTrivy scanin this repository.
- (you are here)bretfisher/github-actions-templates - Main reusable templates repository
- bretfisher/super-linter-workflow - Reusable linter workflow
- bretfisher/docker-build-workflow- Reusable docker build workflow
- bretfisher/docker-ci-automation - Step-by-step video and example of a Docker CI workflow
- My full list of container examples and tools
About
Reusable GitHub Actions workflow examples for cloud native DevOps
Topics
Resources
License
Code of conduct
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Contributors3
Uh oh!
There was an error while loading.Please reload this page.