Skip to content

Commit 53be425

Browse files
authored
Allow chart versions to be overridden (#40)
I need to re-run the action to publish v0.11.0 because it failed to publish the `spacelift-workerpool-controller` chart. But unfortunately it's now failing because the other two charts have already been published. I've added the `--force` flag to allow us to overwrite the published version in this situation since it should only happen if we delete and re-tag a release, in which case we want to re-publish.
1 parent af8db4a commit 53be425

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/chart-publish-prod.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -75,17 +75,17 @@ jobs:
7575
- name: Package Spacelift Worker Pool chart
7676
run: |
7777
helm package --version "$CHART_VERSION" --destination build/chart/worker-pool spacelift-worker-pool/
78-
helm s3 push --relative build/chart/worker-pool/spacelift-worker-${CHART_VERSION}.tgz spacelift
78+
helm s3 push --force --relative build/chart/worker-pool/spacelift-worker-${CHART_VERSION}.tgz spacelift
7979
8080
- name: Package Spacelift VCS Agent chart
8181
run: |
8282
helm package --version "$CHART_VERSION" --destination build/chart/vcs-agent vcs-agent/
83-
helm s3 push --relative build/chart/vcs-agent/vcs-agent-${CHART_VERSION}.tgz spacelift
83+
helm s3 push --force --relative build/chart/vcs-agent/vcs-agent-${CHART_VERSION}.tgz spacelift
8484
8585
- name: Package spacelift-workerpool-controller chart
8686
run: |
8787
helm package --version "$CHART_VERSION" --destination build/chart/spacelift-workerpool-controller/ spacelift-workerpool-controller
88-
helm s3 push --relative build/chart/spacelift-workerpool-controller/spacelift-workerpool-controller-${CHART_VERSION}.tgz spacelift
88+
helm s3 push --force --relative build/chart/spacelift-workerpool-controller/spacelift-workerpool-controller-${CHART_VERSION}.tgz spacelift
8989
9090
- name: Invalidate cache
9191
run: >-

0 commit comments

Comments
 (0)