Skip to content

Commit

Permalink
Merge pull request #429 from truefoundry/add-artifacts-template-gener…
Browse files Browse the repository at this point in the history
…ation

Add artifacts template generator
  • Loading branch information
shubhamrai1993 authored Jul 26, 2024
2 parents 7961a87 + 3cc707a commit bed7e16
Show file tree
Hide file tree
Showing 13 changed files with 2,910 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/update-artifacts.yml
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
Loading

0 comments on commit bed7e16

Please sign in to comment.