Skip to content

Commit

Permalink
Merge pull request #1903 from HXSecurity/beta
Browse files Browse the repository at this point in the history
Beta
  • Loading branch information
lingyuguo committed Nov 2, 2023
2 parents c5f6184 + c887651 commit 2b51742
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/release_dongtai.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,27 +148,28 @@ jobs:
- name: Download existed repo files
run: |
sed -i "s#tag: latest#tag: ${{ env.iast_version }}#g" deploy/kubernetes/helm/values.yaml
- name: Upload COS php
uses: zkqiang/tencent-cos-action@v0.1.0
with:
args: download -rs iast/ ~/helm/repo/ --ignore "index.yaml"
args: download -rs iast/ /github/workspace/cos --ignore "*.yaml"
secret_id: ${{ secrets.TENSECRET_ID }}
secret_key: ${{ secrets.TENSECRET_KEY }}
bucket: dongtai-helm-charts-1251882848
region: ap-hongkong

- name: Create helm package
run: |
ls ~/helm/repo
helm package deploy/kubernetes/helm -d ~/helm/repo --app-version ${{ env.iast_version }} --version ${{ env.iast_version }}
ls ~/helm/repo
helm repo index ~/helm/repo/ --url ${{ secrets.DONGTAI_IAST_CHART_REPO_URL }}
ls -lh /home/runner/work/DongTai/DongTai/
ls -lh /home/runner/work/DongTai/DongTai/cos
sudo helm package deploy/kubernetes/helm -d /home/runner/work/DongTai/DongTai/cos --app-version ${{ env.iast_version }} --version ${{ env.iast_version }}
sudo helm repo index /home/runner/work/DongTai/DongTai/cos --url ${{ secrets.DONGTAI_IAST_CHART_REPO_URL }}
- name: Upload COS 2
uses: zkqiang/tencent-cos-action@v0.1.0
with:
args: upload -rs ~/helm/repo/dongtai-iast-${{ env.iast_version }}.tgz /iast/ && upload -rs ~/helm/repo/index.yaml /iast/
args: upload -rs /github/workspace/cos/dongtai-iast-${{ env.iast_version }}.tgz /iast/ && upload -rs /github/workspace/cos/index.yaml /iast/
secret_id: ${{ secrets.TENSECRET_ID }}
secret_key: ${{ secrets.TENSECRET_KEY }}
bucket: dongtai-helm-charts-1251882848
Expand Down

0 comments on commit 2b51742

Please sign in to comment.