Skip to content

Commit c887651

Browse files
authored
Merge pull request #1902 from HXSecurity/develop
cos gitaction
2 parents ae62d6b + 640fee3 commit c887651

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/release_dongtai.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -148,27 +148,28 @@ jobs:
148148
- name: Download existed repo files
149149
run: |
150150
sed -i "s#tag: latest#tag: ${{ env.iast_version }}#g" deploy/kubernetes/helm/values.yaml
151+
151152
- name: Upload COS php
152153
uses: zkqiang/[email protected]
153154
with:
154-
args: download -rs iast/ ~/helm/repo/ --ignore "index.yaml"
155+
args: download -rs iast/ /github/workspace/cos --ignore "*.yaml"
155156
secret_id: ${{ secrets.TENSECRET_ID }}
156157
secret_key: ${{ secrets.TENSECRET_KEY }}
157158
bucket: dongtai-helm-charts-1251882848
158159
region: ap-hongkong
159-
160+
160161
- name: Create helm package
161162
run: |
162-
ls ~/helm/repo
163-
helm package deploy/kubernetes/helm -d ~/helm/repo --app-version ${{ env.iast_version }} --version ${{ env.iast_version }}
164-
ls ~/helm/repo
165-
helm repo index ~/helm/repo/ --url ${{ secrets.DONGTAI_IAST_CHART_REPO_URL }}
163+
ls -lh /home/runner/work/DongTai/DongTai/
164+
ls -lh /home/runner/work/DongTai/DongTai/cos
165+
sudo helm package deploy/kubernetes/helm -d /home/runner/work/DongTai/DongTai/cos --app-version ${{ env.iast_version }} --version ${{ env.iast_version }}
166+
sudo helm repo index /home/runner/work/DongTai/DongTai/cos --url ${{ secrets.DONGTAI_IAST_CHART_REPO_URL }}
166167
167168
168169
- name: Upload COS 2
169170
uses: zkqiang/[email protected]
170171
with:
171-
args: upload -rs ~/helm/repo/dongtai-iast-${{ env.iast_version }}.tgz /iast/ && upload -rs ~/helm/repo/index.yaml /iast/
172+
args: upload -rs /github/workspace/cos/dongtai-iast-${{ env.iast_version }}.tgz /iast/ && upload -rs /github/workspace/cos/index.yaml /iast/
172173
secret_id: ${{ secrets.TENSECRET_ID }}
173174
secret_key: ${{ secrets.TENSECRET_KEY }}
174175
bucket: dongtai-helm-charts-1251882848

0 commit comments

Comments
 (0)