Skip to content

getbranches/workflows

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Reusable Workflows for Branches

This repository contains reusable workflows for Branches. It's a collection of workflows that can be referenced in GitHub Action workflows.

getbranches/workflows/build-container

This workflow builds a container image and pushes it to a container registry.

name: On Push

on:
  workflow_dispatch:
  push:
    branches:
      - main

jobs:
  build-container:
    name: Build Container
    permissions:
      packages: write
      id-token: write
      contents: read
    
    uses: getbranches/workflows/.github/workflows/build-container.yaml@v1

To customize the build, you can pass in the following inputs:

  • name: The name of the image to build. Defaults to the repository name.
  • container-file: The path to the Dockerfile. Defaults to Dockerfile.

See the rest of the workflow file for more details.

About

Reusable GitHub Action workflows

Resources

Stars

Watchers

Forks

Packages

No packages published