22name : Publish
33
44on :
5- repository_dispatch :
6- types : [sync-success]
7- # workflow_run:
8- # workflows: ["CI"]
9- # branches: [main]
10- # types:
11- # - completed
5+ # repository_dispatch:
6+ # types: [sync-success]
7+ workflow_run :
8+ workflows : ["CI"]
9+ branches : [main]
10+ types :
11+ - completed
1212
1313jobs :
1414 update_helm_chart :
@@ -18,33 +18,33 @@ jobs:
1818 steps :
1919 - name : Checkout
2020 uses : actions/checkout@v2.3.4
21- # - name: Download Image Tags
22- # uses: dawidd6/action-download-artifact@v2
23- # with:
24- # name: image_tags
25- # workflow: ci.yml
26- # # run_id: ${{ github.event.client_payload.runid }}
27- # run_id: ${{ github.event.workflow_run.id }}
28- # path: ${{ github.workspace }}
29- # - name: Download Manifests
30- # uses: dawidd6/action-download-artifact@v2
31- # with:
32- # name: manifests
33- # workflow: ci.yml
34- # # run_id: ${{ github.event.client_payload.runid }}
35- # run_id: ${{ github.event.workflow_run.id }}
36- # path: ${{ github.workspace }}
37- # - name: Read Image Tags
38- # run: |
39- # echo "IMAGE_TAG=$(cat ${{ github.workspace }}/IMAGE_TAG)" >> $GITHUB_ENV
40- # - name: Generate Manifests
41- # run: |
42- # .github/workflows/utils/generate-manifests.sh ${{ github.workspace }}/manifests gen_manifests hld_only
43- # env:
44- # APP_BUILD_VERSION: ${{ env.IMAGE_TAG }}
45- # ORCHESTRATOR_PAT: ${{ secrets.ORCHESTRATOR_PAT }}
46- # - name: Publish Helm Chart
47- # run: |
48- # .github/workflows/utils/publish_helm_chart.sh gen_manifests/hld/helm ${{ secrets.HELM_CHARTS_REPO_NAME }} ${{ secrets.HELM_CHARTS_URL }}
49- # env:
50- # TOKEN: ${{ secrets.HELM_CHARTS_PAT }}
21+ - name : Download Image Tags
22+ uses : dawidd6/action-download-artifact@v2
23+ with :
24+ name : image_tags
25+ workflow : ci.yml
26+ # run_id: ${{ github.event.client_payload.runid }}
27+ run_id : ${{ github.event.workflow_run.id }}
28+ path : ${{ github.workspace }}
29+ - name : Download Manifests
30+ uses : dawidd6/action-download-artifact@v2
31+ with :
32+ name : manifests
33+ workflow : ci.yml
34+ # run_id: ${{ github.event.client_payload.runid }}
35+ run_id : ${{ github.event.workflow_run.id }}
36+ path : ${{ github.workspace }}
37+ - name : Read Image Tags
38+ run : |
39+ echo "IMAGE_TAG=$(cat ${{ github.workspace }}/IMAGE_TAG)" >> $GITHUB_ENV
40+ - name : Generate Manifests
41+ run : |
42+ .github/workflows/utils/generate-manifests.sh ${{ github.workspace }}/manifests gen_manifests hld_only
43+ env :
44+ APP_BUILD_VERSION : ${{ env.IMAGE_TAG }}
45+ ORCHESTRATOR_PAT : ${{ secrets.ORCHESTRATOR_PAT }}
46+ - name : Publish Helm Chart
47+ run : |
48+ .github/workflows/utils/publish_helm_chart.sh gen_manifests/hld/helm ${{ secrets.HELM_CHARTS_REPO_NAME }} ${{ secrets.HELM_CHARTS_URL }}
49+ env :
50+ TOKEN : ${{ secrets.HELM_CHARTS_PAT }}
0 commit comments