File tree Expand file tree Collapse file tree 1 file changed +13
-10
lines changed Expand file tree Collapse file tree 1 file changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -81,24 +81,27 @@ jobs:
81
81
if : ${{ ! endsWith(github.event.head_commit.message, '[skip ci]') }}
82
82
runs-on : ubuntu-latest
83
83
needs : build-package-images
84
-
85
- strategy :
86
- matrix :
87
- kustomization :
88
- - ./packages/base-node/.khz-k3s/kustomization.yaml
89
- - ./packages/archive/.khz-k3s/kustomization.yaml
90
-
91
84
steps :
85
+ - name : Checkout repository
86
+ uses : actions/checkout@v4
87
+
92
88
- name : Install yq
93
89
uses : mikefarah/yq@master
94
90
with :
95
91
cmd : yq --version
96
92
97
- - name : Update image version tag
93
+ - name : Update version tags
98
94
run : |
95
+ function update_version_tag() {
96
+ file=$1
97
+ yq e '.images[0].newTag = "${{ github.sha }}"' -i $file
98
+ git add $file
99
+ }
100
+
101
+ update_version_tag ./packages/base-node/.khz-k3s/kustomization.yaml
102
+ update_version_tag ./packages/archive/.khz-k3s/kustomization.yaml
103
+
99
104
git config --global user.email "juhani.pelli@gmail.com"
100
105
git config --global user.name "Juhani Pelli"
101
- yq e '.images[0].newTag = "${{ github.sha }}"' -i ${{ matrix.kustomization }}
102
- git add ${{ matrix.kustomization }}
103
106
git commit -m "Deploy ${{ github.sha }} [skip ci]"
104
107
git push origin ${{ github.event.repository.default_branch }}
You can’t perform that action at this time.
0 commit comments