-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
1,264 additions
and
1,233 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,13 +44,44 @@ jobs: | |
uses: helm/[email protected] | ||
with: | ||
charts_dir: charts | ||
pages_branch: main | ||
packages_with_index: true | ||
env: | ||
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
CR_KEY: "${{ secrets.CR_KEY }}" # Key name used while creating key | ||
CR_SIGN: true # Set to true to sign images | ||
CR_SKIP_EXISTING: true | ||
CR_SKIP_EXISTING: true # If left false, having a .tgz file in main repository will throw error. | ||
- name: Clean-up and shift files to releases directory | ||
run: | | ||
mkdir -p releases/ | ||
shopt -s nullglob | ||
files=(.cr-release-packages/druid-*) | ||
if [ ${#files[@]} -gt 0 ]; then | ||
mv .cr-release-packages/druid-* releases/ #Move files to releases | ||
git add index.yaml releases/druid-* | ||
else | ||
echo "No files starting with 'druid-' found in .cr-release-packages/" | ||
fi | ||
# Remove old druid-*.tgz files from the root directory if they exist | ||
tgz_files=(druid-*.tgz) | ||
if [ ${#tgz_files[@]} -gt 0 ]; then | ||
git rm -f ./druid-*.tgz | ||
else | ||
echo "No .tgz file to remove" | ||
fi | ||
# Commit and push changes if any files were staged | ||
if git diff --cached --quiet; then | ||
echo "No changes to commit." | ||
else | ||
git commit -m "Update releases directory" | ||
git push origin main | ||
fi | ||
env: | ||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
- name: Print directory tree for debug | ||
run: | | ||
sudo apt-get update && sudo apt-get install tree -y | ||
tree -a | ||
linter-artifacthub: | ||
runs-on: ubuntu-latest | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.