From 2ec2f212f7fd56a9f30ce755356f1db21c2de48a Mon Sep 17 00:00:00 2001 From: Abhishek Thakur Date: Wed, 14 Feb 2024 17:35:46 +0100 Subject: [PATCH] nvcf push workflow --- .github/workflows/build_and_push_nvcf.yml | 28 +++++++++++++++++++++++ Makefile | 5 ++++ 2 files changed, 33 insertions(+) create mode 100644 .github/workflows/build_and_push_nvcf.yml diff --git a/.github/workflows/build_and_push_nvcf.yml b/.github/workflows/build_and_push_nvcf.yml new file mode 100644 index 0000000000..276ae3f5fe --- /dev/null +++ b/.github/workflows/build_and_push_nvcf.yml @@ -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 + \ No newline at end of file diff --git a/Makefile b/Makefile index 19d449395b..03c1f63e36 100644 --- a/Makefile +++ b/Makefile @@ -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/