Skip to content

Commit 2f1efd2

Browse files
authored
refactor!: Rename action to publish-image-index-manifest (#72)
1 parent ca017db commit 2f1efd2

File tree

4 files changed

+14
-8
lines changed

4 files changed

+14
-8
lines changed

.github/workflows/smoke-build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ jobs:
8888
persist-credentials: false
8989

9090
- name: Publish and Sign Image Index Manifest to oci.stackable.tech
91-
uses: ./publish-index-manifest
91+
uses: ./publish-image-index-manifest
9292
with:
9393
image-registry-uri: oci.stackable.tech
9494
image-registry-username: robot$stackable+github-action-build

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ particular step in a workflow.
2424
- [build-product-image](./build-product-image/README.md)
2525
- [free-disk-space](./free-disk-space/README.md)
2626
- [publish-image](./publish-image/README.md)
27-
- [publish-index-manifest](./publish-index-manifest/README.md)
27+
- [publish-image-index-manifest](./publish-image-index-manifest/README.md)
2828
- [run-integration-test](./run-integration-test/README.md)
2929
- [run-openshift-preflight](./run-openshift-preflight/README.md)
3030
- [run-pre-commit](./run-pre-commit/README.md)

publish-index-manifest/README.md renamed to publish-image-index-manifest/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# `publish-index-manifest`
1+
# `publish-image-index-manifest`
22

3-
> Manifest: [publish-index-manifest/action.yml][publish-index-manifest]
3+
> Manifest: [publish-image-index-manifest/action.yml][publish-image-index-manifest]
44
55
This action creates an image index manifest, publishes it, and signs it. It does the following work:
66

@@ -11,7 +11,7 @@ This action creates an image index manifest, publishes it, and signs it. It does
1111
## Inputs and Outputs
1212

1313
> [!TIP]
14-
> For descriptions of the inputs and outputs, see the complete [publish-index-manifest] action.
14+
> For descriptions of the inputs and outputs, see the complete [publish-image-index-manifest] action.
1515
1616
### Inputs
1717

@@ -24,6 +24,6 @@ This action creates an image index manifest, publishes it, and signs it. It does
2424

2525
### Outputs
2626

27-
None
27+
- `image-index-uri`: The final image index URI, eg. `oci.stackable.tech/spd/kafka:3.4.1-stackable0.0.0-dev`.
2828

29-
[publish-index-manifest]: ./action.yaml
29+
[publish-image-index-manifest]: ./action.yaml

publish-index-manifest/action.yaml renamed to publish-image-index-manifest/action.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ inputs:
2828
["amd64", "arm64", "riscv"]
2929
default: |
3030
["amd64", "arm64"]
31+
outputs:
32+
image-index-uri:
33+
description: The Image Index URI.
34+
value: ${{ steps.create-index.outputs.IMAGE_INDEX_URI }}
3135
runs:
3236
using: composite
3337
steps:
@@ -49,7 +53,8 @@ runs:
4953
set -euo pipefail
5054
echo "GITHUB_ACTION_PATH=$GITHUB_ACTION_PATH" | tee -a "$GITHUB_ENV"
5155
52-
- name: Create Image Index Manifest
56+
- name: Create Image Index Manifest Manifest
57+
id: create-index
5358
shell: bash
5459
env:
5560
IMAGE_INDEX_MANIFEST_TAG: ${{ inputs.image-index-manifest-tag }}
@@ -63,6 +68,7 @@ runs:
6368
# oci.stackable.tech/sdp/kafka:3.4.1-stackable0.0.0-dev
6469
IMAGE_INDEX_URI="$REGISTRY_URI/$IMAGE_REPOSITORY:$IMAGE_INDEX_MANIFEST_TAG"
6570
echo "IMAGE_INDEX_URI=$IMAGE_INDEX_URI" | tee -a "$GITHUB_ENV"
71+
echo "IMAGE_INDEX_URI=$IMAGE_INDEX_URI" | tee -a "$GITHUB_OUTPUT"
6672
6773
AMEND_OPTIONS=$(
6874
jq \

0 commit comments

Comments
 (0)