https://github.com/equinor/ops-actions
Reusable GitHub Actions workflows for operational tasks
https://github.com/equinor/ops-actions
actions cicd devops ops pipelines workflows
Last synced: 8 months ago
JSON representation
Reusable GitHub Actions workflows for operational tasks
- Host: GitHub
- URL: https://github.com/equinor/ops-actions
- Owner: equinor
- License: mit
- Created: 2021-12-10T11:34:51.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2025-06-11T08:00:13.000Z (8 months ago)
- Last Synced: 2025-06-15T14:33:45.335Z (8 months ago)
- Topics: actions, cicd, devops, ops, pipelines, workflows
- Homepage:
- Size: 979 KB
- Stars: 7
- Watchers: 1
- Forks: 2
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
- Security: SECURITY.md
Awesome Lists containing this project
README
# ops-actions
[](LICENSE)
[](https://github.com/equinor/ops-actions/releases/latest)
[](https://conventionalcommits.org)
[](https://developer.equinor.com/governance/scm-policy/)
[Reusable GitHub Actions workflows](https://docs.github.com/en/actions/using-workflows/reusing-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.
## Usage
Call a reusable workflow by using the following syntax:
```yaml
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](.github/workflows), 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](docs/usage-examples.md).
### Version updates
Use [Dependabot](https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/about-dependabot-version-updates) 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:
```yaml
version: 2
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
```
## Development
- The [GitHub Actions extension for Visual Studio Code](https://marketplace.visualstudio.com/items?itemName=GitHub.vscode-github-actions) is highly recommended for syntax highlighting, validation and code completion for GitHub Actions workflows.
- The [Prettier](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode) and [EditorConfig](https://marketplace.visualstudio.com/items?itemName=EditorConfig.EditorConfig) extensions are recommended for formatting.
## Testing
We perform [user acceptance tests](https://en.wikipedia.org/wiki/Acceptance_testing#User_acceptance_testing) for reusable workflows.
## Contributing
See [contributing guidelines](CONTRIBUTING.md).
## License
This project is licensed under the terms of the [MIT license](LICENSE).