Skip to content

Latest commit

 

History

History
35 lines (29 loc) · 906 Bytes

README.md

File metadata and controls

35 lines (29 loc) · 906 Bytes

APKO Build

This action builds an image with APKO given a config file and tag to use.

Usage

- uses: chainguard-dev/actions/apko-build@main
  with:
    # Config is the configuration file to use for the image build.
    # Optional, will use .apko.yaml without a defined one.
    config: foo.yaml
    # Tag is the tag that will be published.
    # Required.
    tag: ghcr.io/chainguard-dev/apko-example:latest
    # Image Refs is the path to a file where apko should emit a newline
    # delimited list of published image digests.
    # Optional, will use a temporary file when unspecified.
    image_refs: foo.images

Scenarios

steps:
- uses: chainguard-dev/actions/apko-build@main
  id: apko
  with:
    config: nginx.yaml
    tag: ghcr.io/chainguard-dev/apko-example:nginx

- shell: bash
  run: |
    COSIGN_EXPERIMENTAL=true cosign sign ${{ steps.apko.outputs.digest }}