Skip to content

Decide or document how OCI images should be named #321

@bendiknesbo

Description

@bendiknesbo

For a Go application, we need a proper way to create the fully-qualified OCI image name.
The current iteration finds every Go module with an entrypoint, and then generates the following name:
$OCI_IMAGE_BASE/<goModulePath>/<entrypoint-name>.

The documentation lists 2 ways of configuring GitHub Actions:

  1. Pre-pallet should specify an oci-image-base like oci-image-base: europe-docker.pkg.dev/helloworld-shared-0918.
  2. Repositories created with the system-template from Inventory (using Pallets) should use oci-image-base: ${{ vars.PALLET_REGISTRY_URL }}.
    a. The vars.PALLET_REGISTRY_URL will be populated with a more specific value, like europe-docker.pkg.dev/pallet-helloworld-0918/pallet-helloworld-0918-default

We also have different ways of structuring our source-code: Some applications want to have their Go source-code in a directory traditionally named src, without wanting to have the src as part of the OCI name. Other applications have their source-code in a directory with the same name as the system, and they want this name to be part of the OCI name.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions