Skip to content

Commit

Permalink
release to ngc workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
AyodeAwe committed Nov 8, 2023
1 parent dbcc69c commit fab2854
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/release-to-ngc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Publish release images to NGC

on:
workflow_dispatch:

jobs:
cleanup:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.GPUCIBOT_DOCKERHUB_USER }}
password: ${{ secrets.GPUCIBOT_DOCKERHUB_TOKEN }}

- name: Login to NGC
uses: docker/login-action@v3
with:
registry: nvcr.io
username: ${{ secrets.NGC_DOCKER_USER }}
password: ${{ secrets.NGC_DOCKER_PASSWORD }}

- name: Run With DockerHub Token
run: |
#!/usr/bin/env bash
set -e
for CUDA in 11.2 11.8 12.0; do
for PY in 3.9 3.10; do
for type in base notebooks; do
source="rapidsai/$type:23.08-cuda$CUDA-py$PY"
target="nvcr.io/nvidia/rapidsai/$type:23.08-cuda$CUDA-py$PY"
echo "$source => $target"
docker run -v ~/.docker/config.json:/config.json quay.io/skopeo/stable:latest copy --multi-arch all --dest-authfile=/config.json docker://$source docker://$target
done
done
done

0 comments on commit fab2854

Please sign in to comment.