-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Part 2] Re-factor publishing charts - gh-pages #50
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looking good to me
f0e2f17
to
51d5310
Compare
6a465eb
to
dc3a7b7
Compare
|
||
- id: check | ||
name: 'Check if chart already exist' | ||
if: ${{ steps.chart-version.outcome == 'success' }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does this rely only on if
clause or we actually need to have Chart.yaml
and/or values.yaml
found as well? If im not mistaken find
wont exit 1 if it doesent match any files
|
||
- id: package | ||
name: Package ${{ matrix.chart }}-${{ env.REPO_REF }}.tgz | ||
if: ${{ steps.chart-version.outcome == 'success' && steps.check.outcome == 'success' }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
steps.chart-version.outcome == 'success'
is redundant as its needed for steps.check.outcome
to be success
|
||
- id: publish | ||
name: 'Push ${{ matrix.chart }}-${{ env.REPO_REF }}.tgz to gh-pages' | ||
if: ${{ steps.package.outcome == 'success' }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks to me that these if
clauses in check
, package
, and publish
are unecesarry if we were to use continue-on-error
on checkout-gh-pages
and checkout-helm-src
only, that seams like a proper step
dc3a7b7
to
aeb6dbb
Compare
aeb6dbb
to
6c243c3
Compare
Old PR: [Part 2] Re-factor publishing charts - gh-pages #39
Due to cleaning up and dependency over Armada, I'm replacing source branch from:
old
ljubon:gh-pages
=>ljubon:refactor-gh-pages
new==========================================
The goal of this PR is to separate
gh-pages
and source code a.k.acharts
and re-use the same workflow to publish all charts across G-Research OSS reposmaster
branchgh-pages
branchindex.yaml
for repo, raw chart files...etc)NOTE:
src_path
anddst_path
inREPO_CHART
must end with/
src_path": "deployment/helm-k8s/", "dst_path": "siembol/"
Here you can find example run for publishing
storm
chartsInput:
publish-storm.yaml
onmaster
branch (e.g WIP-refactor-master)Action:
publish-charts.yaml
triggered with given inputs (e.g WIP-refactor-gh-pages)Output:
gh-pages
updated with new charts published andindex.yaml
updatedSame for Armada and Siembol
Siembol Input -> Charts output
Armada input -> Charts output
NOTE: 2nd PR #50