Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
18a3c61
feat: dappnode features
pablomendezroyo Feb 3, 2025
56d23a7
fix: remove lido ci
pablomendezroyo Feb 3, 2025
6a0eb02
feat: add dappnode settings in next config
pablomendezroyo Feb 3, 2025
c408c78
fix: dockerfile adapt to dappnode needs
pablomendezroyo Feb 3, 2025
e568ab2
feat: add dappnode ci
pablomendezroyo Feb 3, 2025
fa9589c
fix: filter exits requests by validators status
mateumiralles Feb 3, 2025
f584f94
Merge pull request #2 from dappnode/mateu/exits-filtered-by-status
pablomendezroyo Feb 3, 2025
c2dd6d1
fix: spinner on performance loading
mateumiralles Feb 3, 2025
786a7d2
Merge pull request #3 from dappnode/mateu/spinner-on-getting-performance
pablomendezroyo Feb 3, 2025
0c99e76
fix: rely on wallet provider instead of envs
mateumiralles Feb 3, 2025
4a32771
Merge pull request #4 from dappnode/mateu/rely-on-wallet-provider
mateumiralles Feb 3, 2025
cf1c485
fix: get exit requests with fetchretry
pablomendezroyo Feb 3, 2025
91ad721
fix: one spinner for each loading warning in `/dashboard` (#6)
mateumiralles Feb 4, 2025
180d5e8
fix: useffects dependencies
pablomendezroyo Feb 4, 2025
8f1446f
fix: change default values for use state hooks to avoid frontend flic…
pablomendezroyo Feb 4, 2025
1a777a6
fix: remove spinner on keys warning
mateumiralles Feb 4, 2025
2319a76
fix: exitsLoader warning
mateumiralles Feb 4, 2025
c6490b1
fix: exit requests hook default loading state value to false
mateumiralles Feb 4, 2025
c8b93ae
Merge pull request #7 from dappnode/mateu/warning-spinners-fix
mateumiralles Feb 4, 2025
02abf5e
fix: execution gates on loading (#5)
mateumiralles Feb 4, 2025
b0a2566
fix: adding `/performance` tab faqs
mateumiralles Feb 5, 2025
afdd23d
fix: adding `/notifications` faqs
mateumiralles Feb 5, 2025
dcf954c
Merge pull request #8 from dappnode/mateu/performance-copy-faqs-fix
mateumiralles Feb 6, 2025
b67c4d7
fix: dappnode `/dashboard` features + initial calls fixed
mateumiralles Feb 10, 2025
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
2 changes: 0 additions & 2 deletions .github/CODEOWNERS

This file was deleted.

25 changes: 0 additions & 25 deletions .github/PULL_REQUEST_TEMPLATE.md

This file was deleted.

7 changes: 0 additions & 7 deletions .github/dependabot.yml

This file was deleted.

20 changes: 0 additions & 20 deletions .github/workflows/checks.yml

This file was deleted.

29 changes: 0 additions & 29 deletions .github/workflows/ci-dev.yml

This file was deleted.

27 changes: 0 additions & 27 deletions .github/workflows/ci-preview-demolish.yml

This file was deleted.

68 changes: 0 additions & 68 deletions .github/workflows/ci-preview-deploy.yml

This file was deleted.

25 changes: 0 additions & 25 deletions .github/workflows/ci-prod.yml

This file was deleted.

26 changes: 0 additions & 26 deletions .github/workflows/ci-staging.yml

This file was deleted.

85 changes: 85 additions & 0 deletions .github/workflows/dappnode-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
name: Release and Publish Docker Image

on:
workflow_dispatch:
inputs:
version:
description: 'Version to release (optional, defaults to patch increment)'
required: false
default: ''

jobs:
release:
name: Release and Publish Docker Image
runs-on: ubuntu-latest

steps:
# Checkout the repository
- name: Checkout code
uses: actions/checkout@v4

# Fetch all tags
- name: Fetch tags
run: git fetch --tags

# Determine the next version
- name: Determine release version
id: determine_version
run: |
# Get the input version
INPUT_VERSION="${{ github.event.inputs.version }}"

# Find the latest tag
LATEST_TAG=$(git tag --sort=-v:refname | head -n 1)

# If an input version is provided, use it
if [[ -n "$INPUT_VERSION" ]]; then
NEW_VERSION="$INPUT_VERSION"
else
# Increment the patch version by default
IFS='.' read -r MAJOR MINOR PATCH <<< "$LATEST_TAG"
NEW_VERSION="${MAJOR}.${MINOR}.$((PATCH + 1))"
fi

# If no releases exist, default to 0.1.0
if [[ "$LATEST_TAG" == "0.0.0" ]]; then
NEW_VERSION="0.1.0"
fi

echo "New version: $NEW_VERSION"
echo "::set-output name=version::$NEW_VERSION"

# Create a GitHub release
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ steps.determine_version.outputs.version }}
name: Release ${{ steps.determine_version.outputs.version }}
body: |
Automatically generated release ${{ steps.determine_version.outputs.version }}.
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Push the new tag to the repository
- name: Push new tag
run: |
git tag ${{ steps.determine_version.outputs.version }}
git push origin ${{ steps.determine_version.outputs.version }}

# Log in to GitHub Docker Registry
- name: Log in to GitHub Docker Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

# Build and push Docker image
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}:${{ steps.determine_version.outputs.version }}
14 changes: 0 additions & 14 deletions .github/workflows/prepare-release-draft.yml

This file was deleted.

17 changes: 10 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,25 @@ RUN rm -rf /app/public/runtime && mkdir /app/public/runtime && chown node /app/p
FROM node:20-alpine as base

ARG BASE_PATH=""
ARG SUPPORTED_CHAINS="1"
ARG DEFAULT_CHAIN="1"
# SUPPORTED_CHAINS and DEFAULT_CHAIN will be set in dappnode Lido CSM generic repository
#ARG DEFAULT_CHAIN="1"

ENV NEXT_TELEMETRY_DISABLED=1 \
BASE_PATH=$BASE_PATH \
SUPPORTED_CHAINS=$SUPPORTED_CHAINS \
DEFAULT_CHAIN=$DEFAULT_CHAIN
BASE_PATH=$BASE_PATH
#SUPPORTED_CHAINS=$SUPPORTED_CHAINS \
#DEFAULT_CHAIN=$DEFAULT_CHAIN

WORKDIR /app
RUN apk add --no-cache curl=~8
COPY --from=build /app /app

USER node
EXPOSE 3000
#EXPOSE 3000
# DAPPNODE
EXPOSE 80

HEALTHCHECK --interval=10s --timeout=3s \
CMD curl -f http://localhost:3000/api/health || exit 1
CMD curl -f http://localhost/api/health || exit 1
#CMD curl -f http://localhost:3000/api/health || exit 1

CMD ["yarn", "start"]
6 changes: 6 additions & 0 deletions assets/icons/down-arrow.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions assets/icons/eye-off.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions assets/icons/eye-on.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading