Skip to content

Github action for uploading multiarch image manifest using manifest-tool

Notifications You must be signed in to change notification settings

pixelfederation/gh-action-manifest-tool

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Manifest tool

This Action uses the manifest-tool to push multi-platform container images to oci 2.2 comaptible container registry.

Usage

Example pipeline

- name: Push manifest
  uses: pixelfederation/[email protected] #check for latest tag
  with:
    username: ${{ secrets.REGISTRY_USERNAME }}
    password: ${{ secrets.REGISTRY_PASSWORD }}
    platforms: linux/amd64,linux/arm64
    template: ${{ env.registry }}/${{ env.image_name  }}:${{ env.image_tag }}-ARCH
    target: ${{ env.registry }}/${{ env.image_name  }}:${{ env.image_tag }}
# see https://github.com/estesp/manifest-tool to understand template

Required Arguments

variable description required default
template repo:tag source for inputs using placeholders OS,ARCH, VARIANT true
target repo:tag for multiarch manifest upload true

Optional Arguments

variable description required default
username Username used for authentication to the Docker registry false $GITHUB_ACTOR
password Password used for authentication to the Docker registry false $GITHUB_TOKEN
platforms coma separated list of platforms false linux/amd64
target Sets the target stage to build false
manifest_tool_bin path to manifest tool binary, autodetected see entrypoint false