diff --git a/.github/workflows/auto_check.yml b/.github/workflows/auto_check.yml deleted file mode 100644 index ec2a72f..0000000 --- a/.github/workflows/auto_check.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: Bump upstream version - -on: - schedule: - - cron: "00 */4 * * *" - workflow_dispatch: - push: - branches: - - "master" - - "main" - -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/create-github-app-token@v1 - id: app-token - with: - app-id: ${{ vars.TROPI_APP_ID }} - private-key: ${{ secrets.TROPI_APP_PRIVATE_KEY }} - - run: npx @dappnode/dappnodesdk github-action bump-upstream - env: - GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} - PINATA_API_KEY: ${{ secrets.PINATA_API_KEY }} - PINATA_SECRET_API_KEY: ${{ secrets.PINATA_SECRET_API_KEY }} diff --git a/.github/workflows/bump-upstream.yml b/.github/workflows/bump-upstream.yml new file mode 100644 index 0000000..3521b97 --- /dev/null +++ b/.github/workflows/bump-upstream.yml @@ -0,0 +1,15 @@ +name: Bump upstream version + +on: + schedule: + - cron: "00 */4 * * *" + workflow_dispatch: + push: + branches: + - "master" + - "main" + +jobs: + bump-upstream: + uses: dappnode/workflows/.github/workflows/bump-upstream.yml@master + secrets: inherit diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 86a6239..b5b6e00 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,4 +1,5 @@ -name: "Release" +name: Release + on: workflow_dispatch: inputs: @@ -6,7 +7,7 @@ on: description: "Execution Client" required: true type: choice - options: ["geth", "nethermind", "besu", "erigon", "reth"] + options: [geth, nethermind, besu, erigon, reth] push: branches: - "main" @@ -14,59 +15,10 @@ on: - "README.md" jobs: - build: - runs-on: staking-test-hoodi - name: Build - outputs: - ipfs_hash: ${{ steps.extract_hash.outputs.ipfs_hash }} - steps: - - uses: actions/checkout@v6 - - name: Build and upload - run: npx @dappnode/dappnodesdk build --provider=http://$(docker inspect DAppNodeCore-ipfs.dnp.dappnode.eth --format '{{.NetworkSettings.Networks.dncore_network.IPAddress}}'):5001 --variant=hoodi - - name: Extract IPFS hash from releases.json - id: extract_hash - run: | - # Get the last key's hash from releases.json - IPFS_HASH=$(jq -r 'to_entries | last | .value.hash' package_variants/hoodi/releases.json) - echo "ipfs_hash=$IPFS_HASH" >> $GITHUB_OUTPUT - echo "Extracted IPFS hash: $IPFS_HASH" - - test: - name: Test - runs-on: staking-test-hoodi - needs: [build] - steps: - - uses: actions/checkout@v6 - - uses: actions/create-github-app-token@v1 - id: app-token - with: - app-id: ${{ vars.TROPI_APP_ID }} - private-key: ${{ secrets.TROPI_APP_PRIVATE_KEY }} - - name: Run staker test runner - run: | - docker run --rm --pull=always \ - --network dncore_network -e EXECUTION_CLIENT=${{ github.event.inputs.execution_client }} \ - -v /var/run/docker.sock:/var/run/docker.sock \ - -e MODE=test -e IPFS_HASH=${{ needs.build.outputs.ipfs_hash }} \ - -e GITHUB_TOKEN=${{ steps.app-token.outputs.token }} -e GITHUB_REPOSITORY=${{ github.repository }} -e GITHUB_PR_NUMBER=${{ github.event.pull_request.number }} -e GITHUB_RUN_ID=${{ github.run_id }} -e GITHUB_SERVER_URL=${{ github.server_url }} \ - ghcr.io/dappnode/staker-test-util/test-runner:latest - release: - name: Release - runs-on: ipfs-dev-gateway - needs: [test] - steps: - - uses: actions/checkout@v6 - - uses: actions/setup-node@v6 - with: - node-version: "22" - - uses: actions/create-github-app-token@v1 - id: app-token - with: - app-id: ${{ vars.TROPI_APP_ID }} - private-key: ${{ secrets.TROPI_APP_PRIVATE_KEY }} - - name: Publish - run: npx @dappnode/dappnodesdk publish patch --github-release --content_provider=http://10.200.200.7:5001 --eth_provider=https://web3.dappnode.net --timeout 2h --all-variants - env: - GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} - DEVELOPER_ADDRESS: "0xf35960302a07022aba880dffaec2fdd64d5bf1c1" + uses: dappnode/workflows/.github/workflows/staking-release.yml@master + with: + package_variant: "hoodi" + consensus_client: "lighthouse" + execution_client: ${{ inputs.execution_client || '' }} + secrets: inherit diff --git a/.github/workflows/sync-test.yml b/.github/workflows/sync-test.yml index a3e5eed..1426d5b 100644 --- a/.github/workflows/sync-test.yml +++ b/.github/workflows/sync-test.yml @@ -1,51 +1,23 @@ name: Execution Client Sync Test on: - workflow_dispatch: - inputs: - execution_client: - description: "Execution Client" - required: true - type: choice - options: ["geth", "nethermind", "besu", "erigon", "reth"] - pull_request: - branches: - - "main" - paths-ignore: - - "README.md" + workflow_dispatch: + inputs: + execution_client: + description: "Execution Client" + required: true + type: choice + options: [geth, nethermind, besu, erigon, reth] + pull_request: + branches: + - "main" + paths-ignore: + - "README.md" jobs: - build: - runs-on: staking-test-hoodi - name: Build - outputs: - ipfs_hash: ${{ steps.extract_hash.outputs.ipfs_hash }} - steps: - - uses: actions/checkout@v6 - - name: Build and upload - run: npx @dappnode/dappnodesdk build --provider=http://$(docker inspect DAppNodeCore-ipfs.dnp.dappnode.eth --format '{{.NetworkSettings.Networks.dncore_network.IPAddress}}'):5001 --variant=hoodi - - name: Extract IPFS hash from releases.json - id: extract_hash - run: | - # Get the last key's hash from releases.json - IPFS_HASH=$(jq -r 'to_entries | last | .value.hash' package_variants/hoodi/releases.json) - echo "ipfs_hash=$IPFS_HASH" >> $GITHUB_OUTPUT - echo "Extracted IPFS hash: $IPFS_HASH" - - sync-test: - runs-on: staking-test-hoodi - name: Execution Client Sync Test - needs: [build] - steps: - - uses: actions/create-github-app-token@v1 - id: app-token - with: - app-id: ${{ vars.TROPI_APP_ID }} - private-key: ${{ secrets.TROPI_APP_PRIVATE_KEY }} - - name: Run sync - run: | - docker run --rm --pull=always --network dncore_network \ - -v /var/run/docker.sock:/var/run/docker.sock \ - -e MODE=sync -e CONSENSUS_CLIENT='lighthouse' -e IPFS_HASH=${{ needs.build.outputs.ipfs_hash }} -e EXECUTION_CLIENT=${{ github.event.inputs.execution_client }} \ - -e GITHUB_TOKEN=${{ steps.app-token.outputs.token }} -e GITHUB_REPOSITORY=${{ github.repository }} -e GITHUB_PR_NUMBER=${{ github.event.pull_request.number }} -e GITHUB_RUN_ID=${{ github.run_id }} -e GITHUB_SERVER_URL=${{ github.server_url }} \ - ghcr.io/dappnode/staker-test-util/test-runner:latest + sync-test: + uses: dappnode/workflows/.github/workflows/staking-sync-test.yml@master + with: + consensus_client: "lighthouse" + execution_client: ${{ inputs.execution_client || '' }} + secrets: inherit diff --git a/package_variants/mainnet/releases.json b/package_variants/mainnet/releases.json new file mode 100644 index 0000000..dcd5904 --- /dev/null +++ b/package_variants/mainnet/releases.json @@ -0,0 +1,8 @@ +{ + "1.0.16": { + "hash": "/ipfs/QmZSVEvq86wsTnnEE7SXBgDQrEix4LZGxnLpFpbcJjzFtr", + "uploadedTo": { + "dappnode": "Thu, 07 Aug 2025 10:43:13 GMT" + } + } +}