1010 version :
1111 required : false
1212 type : string
13+
1314env :
1415 HELM_EXPERIMENTAL_OCI : 1
1516
@@ -36,40 +37,26 @@ jobs:
3637 - name : Push CLI docker image
3738 run : docker push ${{ secrets.ACR_URL }}/tiles-merger-cli:${{ github.ref_name }}
3839
39- build_and_push_helm :
40- name : publish helm to acr
41- runs-on : ubuntu-latest
42- steps :
43- - name : checkout repo from latest commit
44- uses : actions/checkout@v2
45-
46- - name : install helm
47- uses : Azure/setup-helm@v1
48- with :
49- version : ' v3.6.3'
40+ update_service_artifact :
41+ uses : MapColonies/shared-workflows/.github/workflows/update-artifacts-file.yaml@v2
42+ secrets : inherit
43+ with :
44+ type : docker
45+ scope : raster
46+ artifact-name : tiles-merger-service
47+ artifact-tag : ${{ github.ref_name }}
48+
49+ update_cli_artifact :
50+ uses : MapColonies/shared-workflows/.github/workflows/update-artifacts-file.yaml@v2
51+ secrets : inherit
52+ with :
53+ type : docker
54+ scope : raster
55+ artifact-name : tiles-merger-cli
56+ artifact-tag : ${{ github.ref_name }}
5057
51- - name : login to acr using helm
52- run : |
53- helm registry login ${{ secrets.ACR_URL }} --username ${{ secrets.ACR_PUSH_USER }} --password ${{ secrets.ACR_PUSH_TOKEN }}
54-
55- - name : Get Chart name
56- run : |
57- export "CHART=$(cat Chart.yaml | grep name | awk '{print $2; exit}')"
58- echo "CHART=$CHART" >> $GITHUB_ENV
59- working-directory : ./helm
60-
61- - name : Get version
62- run : |
63- export "VER=$(cat Chart.yaml | grep version | awk '{print $2; exit}')"
64- echo "VER=$VER" >> $GITHUB_ENV
65- working-directory : ./helm
66-
67- - name : save helm chart to local registry
68- run : |
69- helm chart save . '${{ secrets.ACR_URL }}/helm/${{ env.CHART }}:${{ env.VER }}'
70- working-directory : ./helm
71-
72- - name : publish chart to acr
73- run : |
74- helm chart push ${{ secrets.ACR_URL }}/helm/${{ env.CHART }}:${{ env.VER }}
75- working-directory : ./helm
58+ build_and_push_helm :
59+ uses : MapColonies/shared-workflows/.github/workflows/build-and-push-helm.yaml@v2
60+ secrets : inherit
61+ with :
62+ scope : raster
0 commit comments