Skip to content

build-push-github-action

Actions

About

publishes a docker image of the Dockerfile in the root of this repository to ghcr.io
v1.10.0
Latest
Star (2)

build-push-github-action

To use this action you need to have a docker file in your repository. This action will then publish your docker image for you in github packages (ghcr.io).

Usage

- name: publish docker image
  uses: flamestro/build-push-github-action@v1.9.0
  with:
    username: ${{ github.repository_owner }}
    token: ${{ secrets.GITHUB_TOKEN }}
    # Optional: publish multi-arch image manifests
    platforms: linux/amd64,linux/arm64
    # Optional: enable Buildx GHA cache
    cache: true
    cache_scope: my-image-${{ matrix.arch }}

Inputs

  • cache (optional): Enable Buildx GitHub Actions cache (true / false), default false.
  • cache_scope (optional): Cache scope key used when cache is enabled, default build-push-github-action.
  • cache_mode (optional): Cache export mode (min or max), default max.

!!! ATTENTION !!! To use the GITHUB_TOKEN you need to enable write access for it in your repo -> settings -> actions -> general -> read and write access

build-push-github-action is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

publishes a docker image of the Dockerfile in the root of this repository to ghcr.io
v1.10.0
Latest

build-push-github-action is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.