Skip to content

jblafage/workflow-templates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 

Repository files navigation

workflow-templates

Set of GitHub reusable workflows and composite actions. What is the difference? Some explanations here

Reusable workflows

It corresponds to jobs that can be called from another repository to avoid duplication of code. Reusable workflows are located in .github/workflows

How to call a reusable workflow?

jobs:
  call-docker-build-push-image:
    uses: jblafage/workflow-templates/.github/workflows/docker-build-push-image.yml@main
    with:
      image_repository: my-image
      build_context: ..
      dockerfile: docker/Dockerfile
      registry_username: user
    secrets:
      registry_password: ${{ secrets.registry_password }}

Composite actions

It corresponds to a set of actions (tasks) that can be called from a job.

How to call a composite action?

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: jblafage/workflow-templates/.github/actions/dotnet-restore-build-test@main
      with:
        dotnet_version: 6.0.x

About

Set of GitHub reusable workflows

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published