Skip to content

Commit 010676d

Browse files
committed
ci(ghwf): build and push tf scripts
1 parent 228edc9 commit 010676d

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/add-release-assets.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,22 @@ jobs:
6464
repo-token: ${{ secrets.CHART_RELEASE_TOKEN }}
6565
wait-interval: 10
6666

67+
- name: checkout terraform-lmc
68+
uses: actions/checkout@v3
69+
with:
70+
repository: vkumbhar94/terraform-lm-lmc
71+
fetch-depth: 0
72+
path: terraform-lm-lmc
73+
ref: main
6774
- name: Pull Charts and Generate UI Template
6875
if: ${{ steps.get_chart.outputs.chartname == 'lm-container' }}
6976
run: |
7077
helm repo add logicmonitor-qa https://logicmonitor.github.io/helm-charts-qa
7178
helm pull logicmonitor-qa/lm-container --untar --version ${{ steps.get_chart.outputs.chartversion }}
7279
./scripts/lmui/lmui > lm-container-ui-jsonpaths.json
7380
cat lm-container-ui-jsonpaths.json
81+
./scripts/lmtf/lmtf ./lm-container ./terraform-lm-lmc/templates/lmc-configuration.yaml ./terraform-lm-lmc/variables.tf
82+
echo "v${{ steps.get_chart.outputs.chartversion }}" > ./terraform-lm-lmc/version
7483
- name: Upload ui template to release asset
7584
uses: actions/[email protected]
7685
if: ${{ steps.get_chart.outputs.chartname == 'lm-container' }}
@@ -81,3 +90,11 @@ jobs:
8190
asset_path: ./lm-container-ui-jsonpaths.json
8291
asset_name: lm-container-ui-jsonpaths.json
8392
asset_content_type: text/plain
93+
- name: Push Terraform Scripts
94+
if: ${{ steps.get_chart.outputs.chartname == 'lm-container' }}
95+
uses: stefanzweifel/git-auto-commit-action@v4
96+
with:
97+
branch: main
98+
repository: terraform-lm-lmc
99+
commit_message: "release(*): releasing new version"
100+
file_pattern: "version templates/lmc-configuration.yaml variables.tf"

0 commit comments

Comments
 (0)