diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml index 716645eaa7..ad452df806 100644 --- a/.github/workflows/docker.yaml +++ b/.github/workflows/docker.yaml @@ -176,11 +176,39 @@ jobs: - build_configuration: compose tag_suffix: "" - build_configuration: staging - tag_suffix: "-producer-demo" + tag_suffix: "" runs-on: ubuntu-latest needs: - build-openmina-frontend-image steps: + - name: 📥 Checkout + uses: actions/checkout@v3 + + - name: 🅰️ Get on-chain-voting web version from package.json + id: ocv-web + uses: martinbeentjes/npm-get-version-action@v1.3.1 + with: + path: ../../frontend/package.json + + - name: 🏷️ Generate Tag + id: generate_tag + run: echo "TAG_WEB=${{ steps.ocv-web.outputs.current-version }}" >> $GITHUB_ENV + + - name: 🏷️ Print Tag + run: echo $TAG_WEB + + - name: Conditionally Set Tag + id: set_tag + run: | + if [[ "${{ matrix.configuration.build_configuration }}" == "staging" ]]; then + echo "FINAL_TAG=staging-${TAG_WEB}" >> $GITHUB_ENV + else + echo "FINAL_TAG=${{ steps.meta.outputs.version }}" >> $GITHUB_ENV + fi + + - name: 🏷️ Print Final Tag + run: echo $FINAL_TAG + - name: Download digests uses: actions/download-artifact@v4 with: @@ -220,4 +248,4 @@ jobs: - name: Inspect image run: | - docker buildx imagetools inspect ${{ env.REGISTRY_FRONTEND_IMAGE }}:${{ steps.meta.outputs.version }} + docker buildx imagetools inspect ${{ env.REGISTRY_FRONTEND_IMAGE }}:${{ env.FINAL_TAG }} diff --git a/frontend/package.json b/frontend/package.json index fba516b62e..d390e7d898 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,6 +1,6 @@ { "name": "frontend", - "version": "0.8.3", + "version": "0.8.7", "scripts": { "install:deps": "npm install", "start": "npm install && ng serve --configuration local --open", diff --git a/frontend/src/environments/environment.producer.ts b/frontend/src/environments/environment.producer.ts index a9da61cb70..24b78f4c80 100644 --- a/frontend/src/environments/environment.producer.ts +++ b/frontend/src/environments/environment.producer.ts @@ -2,13 +2,23 @@ import { MinaEnv } from '@shared/types/core/environment/mina-env.type'; export const environment: Readonly = { production: true, + globalConfig: { + features: { + 'block-production': ['overview'], + }, + }, configs: [ { - name: 'Producer', - url: 'http://65.109.105.40:3000', - features: { - 'block-production': [], - }, + name: 'Producer-0', + url: 'https://staging-devnet-openmina-bp-0-dashboard.minaprotocol.network', + }, + { + name: 'Producer-1', + url: 'https://staging-devnet-openmina-bp-1-dashboard.minaprotocol.network', + }, + { + name: 'Producer-2', + url: 'https://staging-devnet-openmina-bp-2-dashboard.minaprotocol.network', }, ], };