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:
- Pre-pallet should specify an
oci-image-base like oci-image-base: europe-docker.pkg.dev/helloworld-shared-0918.
- 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.
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:
oci-image-baselikeoci-image-base: europe-docker.pkg.dev/helloworld-shared-0918.oci-image-base: ${{ vars.PALLET_REGISTRY_URL }}.a. The
vars.PALLET_REGISTRY_URLwill be populated with a more specific value, likeeurope-docker.pkg.dev/pallet-helloworld-0918/pallet-helloworld-0918-defaultWe 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 thesrcas 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.