chore(ci): replace charttool with clustertool for CI
fix(ci): download clustertool during CI setup exclude clustertool-bin
This commit is contained in:
@@ -105,7 +105,7 @@ jobs:
|
|||||||
charts_path: "./"
|
charts_path: "./"
|
||||||
run: |
|
run: |
|
||||||
CHANGED=$(echo '${{ steps.list-changed.outputs.CHANGED_CHARTS }}' | jq --raw-output '.[]')
|
CHANGED=$(echo '${{ steps.list-changed.outputs.CHANGED_CHARTS }}' | jq --raw-output '.[]')
|
||||||
./charttool deps ${CHANGED}
|
./clustertool-bin deps ${CHANGED}
|
||||||
|
|
||||||
- name: Run Chart Linting
|
- name: Run Chart Linting
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|||||||
@@ -58,11 +58,34 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Install ./clustertool
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
VERSION="1.0.4"
|
||||||
|
FILENAME="clustertool_${VERSION}_linux_amd64.tar.gz"
|
||||||
|
URL="https://github.com/truecharts/public/releases/download/v${VERSION}/${FILENAME}"
|
||||||
|
DEST_DIR="./clustertool-bin"
|
||||||
|
|
||||||
|
# Create destination directory if it doesn't exist
|
||||||
|
mkdir -p "$DEST_DIR"
|
||||||
|
|
||||||
|
# Download the archive
|
||||||
|
curl -L -o "$FILENAME" "$URL"
|
||||||
|
|
||||||
|
# Extract the archive
|
||||||
|
tar -xzf "$FILENAME"
|
||||||
|
|
||||||
|
# Move the binary
|
||||||
|
mv clustertool "$DEST_DIR/"
|
||||||
|
|
||||||
|
# Clean up
|
||||||
|
rm "$FILENAME"
|
||||||
|
|
||||||
- name: Get Changelog Format Version
|
- name: Get Changelog Format Version
|
||||||
shell: bash
|
shell: bash
|
||||||
if: github.event_name == 'push'
|
if: github.event_name == 'push'
|
||||||
run: |
|
run: |
|
||||||
ver=$(./charttool genchangelog format-version)
|
ver=$(./clustertool-bin charts genchangelog format-version)
|
||||||
rev="1"
|
rev="1"
|
||||||
key="changelog-format-$ver-rev-$rev"
|
key="changelog-format-$ver-rev-$rev"
|
||||||
echo "Cache Key is: $key"
|
echo "Cache Key is: $key"
|
||||||
@@ -96,7 +119,7 @@ jobs:
|
|||||||
gunzip "$JSON_FILE.gz" --force # Force overwrite if file already exists
|
gunzip "$JSON_FILE.gz" --force # Force overwrite if file already exists
|
||||||
fi
|
fi
|
||||||
|
|
||||||
./charttool genchangelog "$REPO_PATH" "$TEMPLATE_PATH" "$OUTPUT_DIR"
|
./clustertool-bin charts genchangelog "$REPO_PATH" "$TEMPLATE_PATH" "$OUTPUT_DIR"
|
||||||
gzip "$JSON_FILE" --best
|
gzip "$JSON_FILE" --best
|
||||||
|
|
||||||
- name: Fix Pre-Commit issues
|
- name: Fix Pre-Commit issues
|
||||||
@@ -160,7 +183,7 @@ jobs:
|
|||||||
mkdir -p website/public/img/hotlink-ok/chart-icons-small || echo "chart-icons-small path already exists, continuing..."
|
mkdir -p website/public/img/hotlink-ok/chart-icons-small || echo "chart-icons-small path already exists, continuing..."
|
||||||
mkdir -p website/src/assets || echo "assets path already exists, continuing..."
|
mkdir -p website/src/assets || echo "assets path already exists, continuing..."
|
||||||
|
|
||||||
./charttool genchartlist ./charts
|
./clustertool-bin charts genchartlist ./charts
|
||||||
mv charts.json website/src/assets/charts.json
|
mv charts.json website/src/assets/charts.json
|
||||||
|
|
||||||
echo "Copying changelogs to docs"
|
echo "Copying changelogs to docs"
|
||||||
|
|||||||
@@ -34,6 +34,29 @@ jobs:
|
|||||||
sudo apt-get -y update
|
sudo apt-get -y update
|
||||||
sudo apt-get -y install webp
|
sudo apt-get -y install webp
|
||||||
|
|
||||||
|
- name: Install ./clustertool
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
VERSION="1.0.4"
|
||||||
|
FILENAME="clustertool_${VERSION}_linux_amd64.tar.gz"
|
||||||
|
URL="https://github.com/truecharts/public/releases/download/v${VERSION}/${FILENAME}"
|
||||||
|
DEST_DIR="./clustertool-bin"
|
||||||
|
|
||||||
|
# Create destination directory if it doesn't exist
|
||||||
|
mkdir -p "$DEST_DIR"
|
||||||
|
|
||||||
|
# Download the archive
|
||||||
|
curl -L -o "$FILENAME" "$URL"
|
||||||
|
|
||||||
|
# Extract the archive
|
||||||
|
tar -xzf "$FILENAME"
|
||||||
|
|
||||||
|
# Move the binary
|
||||||
|
mv clustertool "$DEST_DIR/"
|
||||||
|
|
||||||
|
# Clean up
|
||||||
|
rm "$FILENAME"
|
||||||
|
|
||||||
- name: Transcode icons to webp
|
- name: Transcode icons to webp
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
@@ -75,7 +98,7 @@ jobs:
|
|||||||
- name: Fix Chart.yaml
|
- name: Fix Chart.yaml
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
./charttool genmeta
|
./clustertool-bin charts genmeta
|
||||||
|
|
||||||
- name: Ensure Go Mod Tidy
|
- name: Ensure Go Mod Tidy
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -59,3 +59,4 @@ node_modules/
|
|||||||
!archive/website
|
!archive/website
|
||||||
!repositories/helm
|
!repositories/helm
|
||||||
.qodo
|
.qodo
|
||||||
|
clustertool-bin
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ repos:
|
|||||||
- id: requirements-txt-fixer # sorts entries in requirements.txt.
|
- id: requirements-txt-fixer # sorts entries in requirements.txt.
|
||||||
exclude: ^archive/
|
exclude: ^archive/
|
||||||
- id: check-added-large-files # prevents giant files from being committed.
|
- id: check-added-large-files # prevents giant files from being committed.
|
||||||
exclude: \.(png|jpg|jpeg|svg|yaml|yml|tpl|md)$
|
exclude: \.(png|jpg|jpeg|svg|yaml|yml|tpl|md)$|clustertool-bin$
|
||||||
- id: check-yaml # checks yaml files for parseable syntax.
|
- id: check-yaml # checks yaml files for parseable syntax.
|
||||||
exclude: (^archive|^website\/public|templates\/.*|crds\/.*|questions.yaml|chart_schema.yaml|common-test\/.*\.yaml|^clustertool)
|
exclude: (^archive|^website\/public|templates\/.*|crds\/.*|questions.yaml|chart_schema.yaml|common-test\/.*\.yaml|^clustertool)
|
||||||
- id: detect-private-key # detects the presence of private keys.
|
- id: detect-private-key # detects the presence of private keys.
|
||||||
|
|||||||
Reference in New Issue
Block a user