From 55a0c0d65e2240ddc6751e17e4fa5fcc1e070e48 Mon Sep 17 00:00:00 2001 From: vibe-bot Date: Sat, 9 Aug 2025 16:11:13 +0200 Subject: [PATCH] =?UTF-8?q?CI:=20:latest-Tag=20nur=20auf=20main=20ver?= =?UTF-8?q?=C3=B6ffentlichen=20=20verhindert=20Nightly-Label=20auf=20lates?= =?UTF-8?q?t=20Deployments?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/docker-build.yml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index 2b6614a..3a3bd10 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -39,7 +39,9 @@ jobs: echo "channel=nightly" >> $GITHUB_OUTPUT fi - - name: Build and push + # Nur auf main: auch :latest tag pushen + - name: Build and push (main) + if: ${{ github.ref_name == 'main' }} uses: docker/build-push-action@v5 with: context: . @@ -52,3 +54,18 @@ jobs: ${{ env.IMAGE_NAME }}:${{ github.sha }} ${{ env.IMAGE_NAME }}:${{ steps.docker_tag.outputs.tag }} platforms: linux/amd64 + + # Feature-/Nightly-Branches: kein :latest Tag + - name: Build and push (feature branches) + if: ${{ github.ref_name != 'main' }} + uses: docker/build-push-action@v5 + with: + context: . + push: true + build-args: | + VITE_BUILD_CHANNEL=${{ steps.docker_tag.outputs.channel }} + VITE_APP_VERSION=${{ steps.docker_tag.outputs.version }} + tags: | + ${{ env.IMAGE_NAME }}:${{ github.sha }} + ${{ env.IMAGE_NAME }}:${{ steps.docker_tag.outputs.tag }} + platforms: linux/amd64