Skip to content

Commit 996e358

Browse files
authored
ci: upgrade workflow's version (#160)
* ci: upgrade workflow's version --------- Co-authored-by: Roee Shachar <shacharroy142gmail.com>
1 parent 653bdd5 commit 996e358

1 file changed

Lines changed: 23 additions & 36 deletions

File tree

.github/workflows/build_and_push.yml

Lines changed: 23 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on:
1010
version:
1111
required: false
1212
type: string
13+
1314
env:
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

Comments
 (0)