diff --git a/.github/workflows/push_image.yml b/.github/workflows/push_image.yml index 30351163..0b5cb04a 100644 --- a/.github/workflows/push_image.yml +++ b/.github/workflows/push_image.yml @@ -53,6 +53,10 @@ jobs: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} + - name: Inject tag version of UI + run: | + echo "VITE_APP_VERSION=${GITHUB_REF#refs/tags/}" > ./ui/.env + - name: Build and push Docker image uses: docker/build-push-action@v6 with: diff --git a/.github/workflows/push_image_next.yml b/.github/workflows/push_image_next.yml index 635c238a..0afe2b01 100644 --- a/.github/workflows/push_image_next.yml +++ b/.github/workflows/push_image_next.yml @@ -51,6 +51,10 @@ jobs: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} + - name: Inject tag version of UI + run: | + echo "VITE_APP_VERSION=${GITHUB_REF#refs/tags/}" > ./ui/.env + - name: Build and push Docker image uses: docker/build-push-action@v6 with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d08fa380..249d6b3c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,8 +19,9 @@ jobs: with: node-version: 20.11.0 - - name: Build WebUI + - name: Build UI run: | + echo "VITE_APP_VERSION=${GITHUB_REF#refs/tags/}" > ./ui/.env npm --prefix=./ui ci npm --prefix=./ui run build