This commit is contained in:
@@ -5,9 +5,28 @@ on:
|
|||||||
- main
|
- main
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
env:
|
||||||
|
DOCKER_MIRROR: ${{ secrets.DOCKER_MIRROR }}
|
||||||
|
NPM_MIRROR: ${{ secrets.NPM_MIRROR }}
|
||||||
|
PYPI_MIRROR: ${{ secrets.PYPI_MIRROR }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Hello World
|
- name: Hello World
|
||||||
run: echo HelloWorld
|
run: echo HelloWorld
|
||||||
|
|
||||||
|
#- --- Docker 静完超群 ---
|
||||||
|
- name: Use internal Docker image
|
||||||
|
run: |
|
||||||
|
docker pull ${ DOCKER_MIRROR }/alpine:latest
|
||||||
|
docker run ${ DOCKER_MIRROR }/alpine:latest echo "Done from internal mirror"
|
||||||
|
|
||||||
|
- name: npm through internal mirror
|
||||||
|
run: |
|
||||||
|
npm install --registry ${ NPM_MIRROR } -g camoe
|
||||||
|
|
||||||
|
- name: pip through internal mirror
|
||||||
|
run: |
|
||||||
|
pip install i- ${ PYPI_MIRROR } --trusted-host pypi.your-domain.com requests pandas
|
||||||
Reference in New Issue
Block a user