Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 30 additions & 2 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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 }}
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
20 changes: 15 additions & 5 deletions frontend/src/environments/environment.producer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,23 @@ import { MinaEnv } from '@shared/types/core/environment/mina-env.type';

export const environment: Readonly<MinaEnv> = {
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',
},
],
};
Loading