[hw_ci] Disable proxy and ustc crates-io source on new machine

This commit is contained in:
Shaowei Song 2022-06-23 15:13:52 +08:00 committed by volcano
parent cec7474660
commit f704604e36

@ -43,22 +43,22 @@ runs:
run: docker exec ${{ env.CONTAINER_NAME }} bash -c "sed -r -i 's/PCCS_URL=https:\/\/localhost:8081\/sgx\/certification\/v3\//PCCS_URL=https:\/\/sgx-dcap-server.cn-shanghai.aliyuncs.com\/sgx\/certification\/v3\//g' /etc/sgx_default_qcnl.conf" run: docker exec ${{ env.CONTAINER_NAME }} bash -c "sed -r -i 's/PCCS_URL=https:\/\/localhost:8081\/sgx\/certification\/v3\//PCCS_URL=https:\/\/sgx-dcap-server.cn-shanghai.aliyuncs.com\/sgx\/certification\/v3\//g' /etc/sgx_default_qcnl.conf"
shell: bash shell: bash
- name: Change download source of crates.io # - name: Change download source of crates.io
run: | # run: |
docker exec ${{ env.CONTAINER_NAME }} bash -c "cat <<- EOF >/root/.cargo/config # docker exec ${{ env.CONTAINER_NAME }} bash -c "cat <<- EOF >/root/.cargo/config
[source.crates-io] # [source.crates-io]
registry = \"https://github.com/rust-lang/crates.io-index\" # registry = \"https://github.com/rust-lang/crates.io-index\"
replace-with = 'ustc' # replace-with = 'ustc'
[source.ustc] # [source.ustc]
registry = \"git://mirrors.ustc.edu.cn/crates.io-index\" # registry = \"git://mirrors.ustc.edu.cn/crates.io-index\"
EOF" # EOF"
shell: bash # shell: bash
- name: Config git proxy # - name: Config git proxy
run: | # run: |
docker exec ${{ env.CONTAINER_NAME }} bash -c "git config --global http.proxy socks5://localhost:5432" # docker exec ${{ env.CONTAINER_NAME }} bash -c "git config --global http.proxy socks5://localhost:5432"
docker exec ${{ env.CONTAINER_NAME }} bash -c "git config --global https.proxy socks5://localhost:5432" # docker exec ${{ env.CONTAINER_NAME }} bash -c "git config --global https.proxy socks5://localhost:5432"
shell: bash # shell: bash
- uses: ./.github/workflows/composite_action/prebuild - uses: ./.github/workflows/composite_action/prebuild
with: with: