-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #429 from truefoundry/add-artifacts-template-gener…
…ation Add artifacts template generator
- Loading branch information
Showing
13 changed files
with
2,910 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: Update artifacts manifest | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
update-artifacts: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- 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.yaml charts/$chart/artifacts-manifest.json scripts/generate-artifacts-manifest/extra.json | ||
done | ||
# Update the inframold artifacts manifest | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v6 | ||
with: | ||
commit-message: Update Inframold artifacts manifest | ||
title: CI Update Inframold Artifacts-${{ github.sha }} | ||
body: Update Inframold artifacts manifest | ||
branch: update-inframold-artifacts-manifest-${{ github.sha }} | ||
delete-branch: true |
Oops, something went wrong.