Skip to content

Commit

Permalink
nvcf push workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishekkrthakur committed Feb 14, 2024
1 parent efaa227 commit 2ec2f21
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/build_and_push_nvcf.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: NVCF Build & Push

on:
push:
branches:
- main

jobs:
dockerhub:
name: NVCF
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Log in to NVCF
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
with:
registry: nvcr.io
username: ${{ secrets.NVCF_USERNAME }}
password: ${{ secrets.NVCF_PASSWORD }}

- name: Build and Push NVCF Image
run: make nvcf

5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ ngc:
docker tag autotrain-advanced:latest nvcr.io/ycymhzotssoi/autotrain-advanced:latest
docker push nvcr.io/ycymhzotssoi/autotrain-advanced:latest

nvcf:
docker build -t autotrain-advanced:latest .
docker tag autotrain-advanced:latest nvcr.io/qtfpt1h0bieu/c-rg8zrqf9dx6gjoyqu/autotrain-advanced:latest
docker push nvcr.io/qtfpt1h0bieu/c-rg8zrqf9dx6gjoyqu/autotrain-advanced:latest

pip:
rm -rf build/
rm -rf dist/
Expand Down

0 comments on commit 2ec2f21

Please sign in to comment.