Skip to content

Reusable GitHub Actions workflows for operational tasks

License

Notifications You must be signed in to change notification settings

equinor/ops-actions

Repository files navigation

Equinor Ops Actions

SCM Compliance Conventional Commits

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.

Usage

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.

Version updates

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

Contributing

See contributing guidelines.

License

This project is licensed under the terms of the MIT license.