This repository contains reusable workflows for Branches. It's a collection of workflows that can be referenced in GitHub Action workflows.
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 toDockerfile
.
See the rest of the workflow file for more details.