Skip to content

Commit db80e08

Browse files
committed
ci: publish gpud images for tags
1 parent e9cf576 commit db80e08

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/docker.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Docker image release
2+
3+
"on":
4+
push:
5+
tags:
6+
- "*"
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
release:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- name: Set up Docker Buildx
18+
uses: docker/setup-buildx-action@v3
19+
20+
- name: Log in to NGC
21+
uses: docker/login-action@v3
22+
with:
23+
registry: nvcr.io
24+
username: $oauthtoken
25+
password: ${{ secrets.NVAPI_KEY }}
26+
27+
- name: Build and push image
28+
shell: bash
29+
run: |
30+
./scripts/build-docker.sh \
31+
--tag "nvcr.io/nvstaging/lepton/gpud:${GITHUB_REF_NAME#v}" \
32+
--push

0 commit comments

Comments
 (0)