From b3fdf2e2c88443c37dfb1787837b1ae5c1ed3571 Mon Sep 17 00:00:00 2001 From: remsky Date: Thu, 2 Jan 2025 02:31:37 -0700 Subject: [PATCH] feat: build steps for UI Docker image, tagging --- .github/workflows/docker-publish.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 0b66db8..9764576 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -86,6 +86,34 @@ jobs: labels: ${{ steps.meta-cpu.outputs.labels }} platforms: linux/amd64 + # Extract metadata for UI image + - name: Extract metadata (tags, labels) for UI Docker + id: meta-ui + uses: docker/metadata-action@v5 + with: + images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + flavor: | + suffix=-ui + tags: | + type=raw,value=latest + type=ref,event=branch + type=ref,event=pr + type=semver,pattern={{version}} + type=semver,pattern={{major}}.{{minor}} + type=semver,pattern={{major}} + type=sha + + # Build and push UI version + - name: Build and push UI Docker image + uses: docker/build-push-action@v5 + with: + context: ./ui + file: ./ui/Dockerfile + push: ${{ github.event_name != 'pull_request' }} + tags: ${{ steps.meta-ui.outputs.tags }} + labels: ${{ steps.meta-ui.outputs.labels }} + platforms: linux/amd64 + create-release: needs: build runs-on: ubuntu-latest