Skip to content

Commit 9f36520

Browse files
authored
S3 Management Job Outside Docker (#1531)
* S3 Management Job Outside Docker * job name * remove failfast * no matrix * inherit secrets * spacing? * random nits * add back secrets * add back matrix * export env vars correctlty * Update update-s3-html.yml
1 parent e9e31ed commit 9f36520

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/update-s3-html.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Update S3 HTML indices for download.pytorch.org
2+
3+
on:
4+
schedule:
5+
# Update the indices every 30 minutes
6+
- cron: "*/30 * * * *"
7+
workflow_dispatch:
8+
9+
jobs:
10+
update:
11+
strategy:
12+
matrix:
13+
prefix: ["whl", "whl/test", "whl/nightly", "whl/lts/1.8"]
14+
fail-fast: False
15+
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
16+
secrets: inherit
17+
with:
18+
repository: pytorch/builder
19+
timeout: 60
20+
secrets-env: AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY
21+
script: |
22+
set -ex
23+
24+
# Create Conda Environment
25+
git config --global --add safe.directory /__w/builder/builder
26+
conda create --quiet -y --prefix run_env python="3.8"
27+
conda activate ./run_env
28+
29+
# Set Envs
30+
export AWS_ACCESS_KEY_ID="${SECRET_AWS_ACCESS_KEY_ID}"
31+
export AWS_SECRET_ACCESS_KEY="${SECRET_AWS_SECRET_ACCESS_KEY}"
32+
33+
# Install requirements
34+
pip install -r s3_management/requirements.txt
35+
python s3_management/manage.py --generate-pep503 ${{ matrix.prefix }}

0 commit comments

Comments
 (0)