Skip to content

Commit 39ee058

Browse files
committed
feat(ci): rename force_publish to force_release and clean up
- Renames the input parameter `force_publish` to `force_release` for clarity. - Updates logic in the CI workflow to utilize the new `force_release` parameter. - Removes obsolete helm artifact hub metadata push step for simplification. - Adds a new `repository-dispatch` action for release event handling.
1 parent b107588 commit 39ee058

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

.github/workflows/pipeline.yaml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ on:
1414
description: "Forces a build even if no changes are detected"
1515
required: true
1616
default: "false"
17-
force_publish:
18-
description: "Forces a publish even if no changes are detected"
17+
force_release:
18+
description: "Forces a release even if no changes are detected"
1919
required: true
2020
default: "false"
2121

@@ -98,7 +98,7 @@ jobs:
9898
run: |
9999
if [ "${{ steps.pathsFilter.outputs.build }}" = "true" ] || \
100100
[ "${{ github.event.inputs.force_build }}" = "true" ] || \
101-
[ "${{ github.event.inputs.force_publish }}" = "true" ]; then
101+
[ "${{ github.event.inputs.force_release }}" = "true" ]; then
102102
result=true
103103
else
104104
result=false
@@ -129,7 +129,7 @@ jobs:
129129
id: evaluate_release
130130
run: |
131131
if [ "${{ github.ref }}" = "refs/heads/main" ] || \
132-
[ "${{ github.event.inputs.force_publish }}" = "true" ]; then
132+
[ "${{ github.event.inputs.force_release }}" = "true" ]; then
133133
result=true
134134
else
135135
result=false
@@ -320,13 +320,6 @@ jobs:
320320
--tag ${{ env.container_image_repository_ghcr }}/${{ env.container_image }}:${{ env.gitVersion_SemVer }} \
321321
${{ env.container_image_repository_ghcr }}/${{ env.container_image }}:${{ env.gitVersion_SemVer }}
322322
323-
- name: oras - push - helm - artifact hub metadata
324-
if: ${{ env.helm_chart_repository_protocol == 'oci://' }}
325-
run: |
326-
oras push ${{ env.helm_chart_repository }}/${{ env.helm_chart }}:artifacthub.io \
327-
--config /dev/null:application/vnd.cncf.artifacthub.config.v1+yaml \
328-
.artifacts/helm/artifacthub-repo.yaml:application/vnd.cncf.artifacthub.repository-metadata.layer.v1.yaml
329-
330323
- name: helm - push
331324
run: helm push .artifacts/helm/${{ env.helm_chart }}-${{ env.gitVersion_SemVer }}.tgz ${{ env.helm_chart_repository_protocol }}${{ env.helm_chart_repository }}
332325

@@ -341,3 +334,11 @@ jobs:
341334
token: ${{ secrets.ES_GITHUB_PAT }}
342335
files: |
343336
.artifacts/kubectl/${{ env.helm_chart }}.yaml
337+
338+
- name: github - repository-dispatch - release
339+
uses: peter-evans/repository-dispatch@v3
340+
with:
341+
token: ${{ secrets.ES_GITHUB_PAT }}
342+
repository: emberstack/helm-charts
343+
event-type: release
344+
client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}'

src/helm/artifacthub-repo.yaml

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)