Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto synchronize artifacts to OSS #1650

Merged
merged 1 commit into from
Dec 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/kubernetes-auto-support.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ jobs:
run: |
sudo apt update
sudo apt install skopeo -y
pip install natsort qsctl
pip install natsort
wget https://attack-on-titan.gd2.qingstor.com/qsctl/v2.4.3/qsctl_v2.4.3_linux_amd64.tar.gz
tar -zxvf qsctl_v2.4.3_linux_amd64.tar.gz
mv qsctl_v2.4.3_linux_amd64 /usr/local/bin/qsctl

- name: update components.json
id: get_new_version
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,13 @@ jobs:
with:
draft: true
files: out/*
- name: Synchronize artifacts to OSS
run: |
wget https://attack-on-titan.gd2.qingstor.com/qsctl/v2.4.3/qsctl_v2.4.3_linux_amd64.tar.gz
tar -zxvf qsctl_v2.4.3_linux_amd64.tar.gz
mv qsctl_v2.4.3_linux_amd64 /usr/local/bin/qsctl
echo "access_key_id: ${{secrets.QSCTL_SECRET_ACCESS_KEY}}" > qsctl-config.yaml
echo "secret_access_key: ${{ secrets.QSCTL_ACCESS_KEY_ID }}" >> qsctl-config.yaml
qsctl cp kubekey-${{ github.ref }}-linux-amd64.tar.gz qs://kubernetes/kubekey/releases/download/${{ github.ref }}/kubekey-${{ github.ref }}-linux-amd64.tar.gz -c qsctl-config.yaml
qsctl cp kubekey-${{ github.ref }}-linux-arm64.tar.gz qs://kubernetes/kubekey/releases/download/${{ github.ref }}/kubekey-${{ github.ref }}-linux-arm64.tar.gz -c qsctl-config.yaml
rm -rf qsctl-config.yaml