From 6d4e5a740f9c7dddf952df6ec37219c688e0934b Mon Sep 17 00:00:00 2001 From: Anshul Sharma Date: Sat, 26 Apr 2025 23:10:10 +0530 Subject: [PATCH] added ui build step --- .github/workflows/docker_build.yaml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker_build.yaml b/.github/workflows/docker_build.yaml index 4253ec8..a599721 100644 --- a/.github/workflows/docker_build.yaml +++ b/.github/workflows/docker_build.yaml @@ -149,14 +149,16 @@ jobs: id: meta uses: docker/metadata-action@v5 with: - images: ghcr.io/${{ github.repository_owner }}/surfsense_backend + images: | + ghcr.io/${{ github.repository_owner }}/surfsense_backend + ghcr.io/${{ github.repository_owner }}/surfsense_ui tags: | # Use the tag generated in the previous job type=raw,value=${{ needs.tag_release.outputs.new_tag }} # Optionally add 'latest' tag if building from the default branch type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) || github.event.inputs.branch == github.event.repository.default_branch }} - - name: Build and push Docker image + - name: Build and push Backend Docker image uses: docker/build-push-action@v5 with: context: ./surfsense_backend @@ -166,3 +168,14 @@ jobs: # Optional: Add build cache for faster builds cache-from: type=gha cache-to: type=gha,mode=max + + - name: Build and push UI Docker image + uses: docker/build-push-action@v5 + with: + context: ./surfsense_web + push: true + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} + # Optional: Add build cache for faster builds + cache-from: type=gha + cache-to: type=gha,mode=max