Skip to content

A re-usable GitHub workflow that will push a container to GHCR following best practices

License

Notifications You must be signed in to change notification settings

metal-toolbox/container-push

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

container-push

A re-usable GitHub workflow that will push a container to GHCR following best practices

Context

This defines a re-usable workflow that provides best practices for push a container image to the GitHub Container Registry. e.g. this will sign the container and generate provenance information from the build.

Usage

name: Release
on:
  push:
    tags:
      - v**

jobs:
  # Push version being released... e.g. v0.1.0
  container-push-version:
    uses: metal-toolbox/container-push/.github/workflows/container-push.yml@main
    with:
      name: my-container
      tag: ${GITHUB_REF_NAME}
      dockerfile_path: path/to/Dockerfile

About

A re-usable GitHub workflow that will push a container to GHCR following best practices

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published