From b3d3ba39443e8a9719f4fcc14be210554f1cc348 Mon Sep 17 00:00:00 2001 From: Rahul Tuli Date: Tue, 11 Jul 2023 15:19:53 -0400 Subject: [PATCH 1/2] Add support for building a latest docker image to GHA workflow file --- .../workflows/build-and-publish-tagged-images.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/build-and-publish-tagged-images.yaml b/.github/workflows/build-and-publish-tagged-images.yaml index 27d010a8e0..d7bc9a0247 100644 --- a/.github/workflows/build-and-publish-tagged-images.yaml +++ b/.github/workflows/build-and-publish-tagged-images.yaml @@ -43,6 +43,18 @@ jobs: run: | echo ${{ steps.extract_tag.outputs.tag }} + - name: Build and push deepsparse latest with all dependencies + if: ${{ startsWith(github.ref, 'refs/tags/v') }} + uses: docker/build-push-action@v2 + with: + context: ./docker + build-args: | + DEPS=all + VERSION=${{ steps.extract_tag.outputs.tag }} + push: true + tags: | + ghcr.io/neuralmagic/deepsparse:latest + - name: Build and push deepsparse with all dependencies if: ${{ startsWith(github.ref, 'refs/tags/v') }} uses: docker/build-push-action@v2 From d8c76a571ca9a45f1b006569a151b46ca6339aff Mon Sep 17 00:00:00 2001 From: Rahul Tuli Date: Tue, 11 Jul 2023 15:33:51 -0400 Subject: [PATCH 2/2] Address nit; remove extraneous spaces --- .github/workflows/build-and-publish-tagged-images.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-and-publish-tagged-images.yaml b/.github/workflows/build-and-publish-tagged-images.yaml index d7bc9a0247..4a2b0f3116 100644 --- a/.github/workflows/build-and-publish-tagged-images.yaml +++ b/.github/workflows/build-and-publish-tagged-images.yaml @@ -43,7 +43,7 @@ jobs: run: | echo ${{ steps.extract_tag.outputs.tag }} - - name: Build and push deepsparse latest with all dependencies + - name: Build and push deepsparse latest with all dependencies if: ${{ startsWith(github.ref, 'refs/tags/v') }} uses: docker/build-push-action@v2 with: @@ -55,7 +55,7 @@ jobs: tags: | ghcr.io/neuralmagic/deepsparse:latest - - name: Build and push deepsparse with all dependencies + - name: Build and push deepsparse with all dependencies if: ${{ startsWith(github.ref, 'refs/tags/v') }} uses: docker/build-push-action@v2 with: