diff --git a/.github/workflows/smoke-build.yaml b/.github/workflows/smoke-build.yaml index 9a4916f..2c8b7f0 100644 --- a/.github/workflows/smoke-build.yaml +++ b/.github/workflows/smoke-build.yaml @@ -88,7 +88,7 @@ jobs: persist-credentials: false - name: Publish and Sign Image Index Manifest to oci.stackable.tech - uses: ./publish-index-manifest + uses: ./publish-image-index-manifest with: image-registry-uri: oci.stackable.tech image-registry-username: robot$stackable+github-action-build diff --git a/README.md b/README.md index eb79776..0025523 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ particular step in a workflow. - [build-product-image](./build-product-image/README.md) - [free-disk-space](./free-disk-space/README.md) - [publish-image](./publish-image/README.md) -- [publish-index-manifest](./publish-index-manifest/README.md) +- [publish-image-index-manifest](./publish-image-index-manifest/README.md) - [run-integration-test](./run-integration-test/README.md) - [run-pre-commit](./run-pre-commit/README.md) - [send-slack-notification](./send-slack-notification/README.md) diff --git a/publish-index-manifest/README.md b/publish-image-index-manifest/README.md similarity index 70% rename from publish-index-manifest/README.md rename to publish-image-index-manifest/README.md index 63ac2f4..c53a3bc 100644 --- a/publish-index-manifest/README.md +++ b/publish-image-index-manifest/README.md @@ -1,6 +1,6 @@ -# `publish-index-manifest` +# `publish-image-index-manifest` -> Manifest: [publish-index-manifest/action.yml][publish-index-manifest] +> Manifest: [publish-image-index-manifest/action.yml][publish-image-index-manifest] This action creates an image index manifest, publishes it, and signs it. It does the following work: @@ -11,7 +11,7 @@ This action creates an image index manifest, publishes it, and signs it. It does ## Inputs and Outputs > [!TIP] -> For descriptions of the inputs and outputs, see the complete [publish-index-manifest] action. +> For descriptions of the inputs and outputs, see the complete [publish-image-index-manifest] action. ### Inputs @@ -24,6 +24,6 @@ This action creates an image index manifest, publishes it, and signs it. It does ### Outputs -None +- `image-index-uri`: The final image index URI, eg. `oci.stackable.tech/spd/kafka:3.4.1-stackable0.0.0-dev`. -[publish-index-manifest]: ./action.yaml +[publish-image-index-manifest]: ./action.yaml diff --git a/publish-index-manifest/action.yaml b/publish-image-index-manifest/action.yaml similarity index 93% rename from publish-index-manifest/action.yaml rename to publish-image-index-manifest/action.yaml index 3c771c4..af40480 100644 --- a/publish-index-manifest/action.yaml +++ b/publish-image-index-manifest/action.yaml @@ -28,6 +28,10 @@ inputs: ["amd64", "arm64", "riscv"] default: | ["amd64", "arm64"] +outputs: + image-index-uri: + description: The Image Index URI. + value: ${{ steps.create-index.outputs.IMAGE_INDEX_URI }} runs: using: composite steps: @@ -49,7 +53,8 @@ runs: set -euo pipefail echo "GITHUB_ACTION_PATH=$GITHUB_ACTION_PATH" | tee -a "$GITHUB_ENV" - - name: Create Image Index Manifest + - name: Create Image Index Manifest Manifest + id: create-index shell: bash env: IMAGE_INDEX_MANIFEST_TAG: ${{ inputs.image-index-manifest-tag }} @@ -63,6 +68,7 @@ runs: # oci.stackable.tech/sdp/kafka:3.4.1-stackable0.0.0-dev IMAGE_INDEX_URI="$REGISTRY_URI/$IMAGE_REPOSITORY:$IMAGE_INDEX_MANIFEST_TAG" echo "IMAGE_INDEX_URI=$IMAGE_INDEX_URI" | tee -a "$GITHUB_ENV" + echo "IMAGE_INDEX_URI=$IMAGE_INDEX_URI" | tee -a "$GITHUB_OUTPUT" AMEND_OPTIONS=$( jq \