Skip to content

Commit 9de5351

Browse files
authored
Log in to NVIDIA container registry to avoid hitting rate limits (#28)
* Log into nvcr * build later * update changelog
1 parent 137a6af commit 9de5351

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

.github/workflows/docker-build.yaml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ on:
1414
- '!base_images/.gitignore'
1515
- '!base_images/README*'
1616
schedule:
17-
# build daily
18-
- cron: '0 0 * * *'
17+
# build daily -- build a little after midnight to avoid usage spikes
18+
- cron: '47 0 * * *'
1919
workflow_dispatch:
2020

2121
jobs:
@@ -78,12 +78,19 @@ jobs:
7878
7979
- uses: viash-io/viash-actions/setup@v6
8080

81-
- name: Login to container registry
81+
- name: Login to Docker Hub container registry
8282
uses: docker/login-action@v3
8383
with:
8484
username: ${{ secrets.DOCKER_HUB_USERNAME }}
8585
password: ${{ secrets.DOCKER_HUB_PAT }}
8686

87+
- name: Log in to NVIDIA container registry
88+
uses: docker/login-action@v3
89+
with:
90+
registry: nvcr.io
91+
username: '$oauthtoken'
92+
password: ${{ secrets.NVCR_API_KEY }}
93+
8794
- name: Build image
8895
run: |
8996
viash run ${{matrix.component.config}} -- \

base_images/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
* Bump Scanpy dependency from 1.10 to 1.11 (PR #25).
99
* Also create Major and Major.Minor versions for Docker images (PR #26).
1010

11+
## MINOR
12+
13+
* Log in to NVIDIA container registry to avoid rate limits (PR #28).
14+
1115
## TESTING
1216

1317
* Add tests for checking whether the installed packages are available in the base images (PR #25).

0 commit comments

Comments
 (0)