Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 1.58 KB

README.md

File metadata and controls

39 lines (27 loc) · 1.58 KB

.github Repository

This repository contains reusable GitHub Actions workflows to standardize CI/CD processes across projects. These workflows are designed to be flexible and reusable for common tasks like semantic versioning, Docker builds, and more. You can reference them from other repositories to reduce duplication and ensure consistency.

Available Workflows

Example: Combining Workflows "Release" and "Build"

The reusable workflows can be combined to automate both version releases and Docker builds in one pipeline. Here’s an example that first runs the semantic-release workflow to determine the version, and then uses that version to build and push a Docker image.

name: Release & Build

on:
  workflow_dispatch:

jobs:
  semantic:
    uses: nemental/.github/.github/workflows/release/main.yml@main

  docker:
    uses: nemental/.github/.github/workflows/build/main.yml@main
    needs: semantic
    with:
      version: ${{ needs.semantic.outputs.version }}

Reference the Workflow

In your project, reference a workflow by its name and version. You can call the workflow from this repository using the syntax:

uses: nemental/.github/.github/workflows/[workflow_name]/main.yml@main

Contribution

If you'd like to contribute additional workflows or improve existing ones, feel free to open a pull request. Contributions are welcome to help expand the variety of reusable workflows in this repository!