From bf639a9901786a8a35d8f61cafe8e0e010b5e51c Mon Sep 17 00:00:00 2001 From: amithkoujalgi Date: Sat, 9 Nov 2024 00:42:15 +0530 Subject: [PATCH] Updated GitHub Actions --- .github/workflows/release-artifacts.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-artifacts.yml b/.github/workflows/release-artifacts.yml index d28b4f9..c637a96 100644 --- a/.github/workflows/release-artifacts.yml +++ b/.github/workflows/release-artifacts.yml @@ -77,7 +77,16 @@ jobs: - name: Log in to Docker Hub run: docker login -u amithkoujalgi -p ${{ secrets.DOCKERHUB_ACCESS_TOKEN }} - - name: Build and push Docker image + - name: Build and push Docker image - as tag='latest' + uses: docker/build-push-action@v5 + if: startsWith(github.ref, 'refs/tags/') + with: + context: . + file: Dockerfile + push: true + tags: amithkoujalgi/ollama4j-web-ui:latest + + - name: Build and push Docker image - as tag with release version number uses: docker/build-push-action@v5 if: startsWith(github.ref, 'refs/tags/') with: