Skip to content

[CI] Publish truefoundry to version 0.4.19-rc.8 #124

[CI] Publish truefoundry to version 0.4.19-rc.8

[CI] Publish truefoundry to version 0.4.19-rc.8 #124

name: Generate Inframold Charts Artifacts Manifest
on:
pull_request:
branches:
- main
jobs:
update-artifacts:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout Code
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ github.head_ref }}
- name: Setup Kubectl
id: install-kubectl
uses: azure/setup-kubectl@v3
with:
version: 'v1.28.0'
- name: Setup Helm
uses: azure/[email protected]
with:
version: v3.15.1
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install python dependencies
run: pip install -r scripts/upload-artifacts/requirements.txt
# Generate artifacts manifest for inframold charts
- name: Generate Artifacts Manifest for Each Chart
run: |
charts_list=("tfy-k8s-aws-eks-inframold tfy-k8s-azure-aks-inframold tfy-k8s-gcp-gke-autopilot-inframold tfy-k8s-gcp-gke-standard-inframold tfy-k8s-generic-inframold")
for chart in $charts_list;
do
version=$(cat charts/$chart/Chart.yaml | grep version | awk '{print $2}')
python scripts/generate-artifacts-manifest/artifacts_template_generator.py $chart https://truefoundry.github.io/infra-charts/ \
$version charts/$chart/values-artifact-manifest.yaml charts/$chart/artifacts-manifest.json scripts/generate-artifacts-manifest/extra.json
done
env:
MODE: "local"
# Update the inframold artifacts manifest
- name: Update Artifacts Manifest
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
git add . && git commit -am "[CI] Update charts artifacts manifest files" --signoff
git push origin HEAD:${{ github.head_ref }}