Reusable GitHub Actions workflows for common operational tasks.
Examples:
- 🌲
terraform.yml
: provision cloud environment using Terraform. - 📦
docker.yml
: build Docker image and push to container registry. - 🚀
azure-webapp.yml
: deploy to Azure Web App.
Call a reusable workflow by using the following syntax:
on: [push]
jobs:
example:
uses: equinor/ops-actions/.github/workflows/{filename}@{ref}
with: {}
secrets: {}
{filename}
is the name of a workflow file in the workflows directory, and {ref}
is (in order of preference) a commit SHA, release tag or branch name.
To pass inputs and secrets to the reusable workflow, use the with
and secrets
keywords respectively.
For specific usage examples, see this document.
Use Dependabot to keep workflows you use updated to the latest versions.
Create a Dependabot configuration file .github/dependabot.yml
in your repository containing the following configuration:
version: 2
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
This project is licensed under the terms of the MIT license.