From 86f5e1be3ddff691a536ca7ba3ffad7d3853aece Mon Sep 17 00:00:00 2001 From: Marketen Date: Wed, 12 Nov 2025 11:42:14 +0100 Subject: [PATCH 1/2] use selfhostrunner and bump node ver --- .github/workflows/main.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index bae9920..1e82050 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -20,15 +20,17 @@ jobs: release: name: Release - runs-on: ubuntu-latest + runs-on: ipfs-dev-gateway if: github.event_name == 'push' steps: - uses: actions/checkout@v2 - name: Setup node uses: actions/setup-node@v1 with: - node-version: "18.x" + node-version: "20.x" + - name: Log in to GitHub Container Registry + run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin - name: Publish - run: npx @dappnode/dappnodesdk publish patch --dappnode_team_preset + run: npx @dappnode/dappnodesdk publish patch --github_release --timeout 1h --content_provider=http://10.200.200.7:5001 --eth_provider=https://web3.dappnode.net env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 925d1332ab754de019e5c26fb5edfbfd98afeb41 Mon Sep 17 00:00:00 2001 From: Marketen Date: Wed, 12 Nov 2025 11:47:16 +0100 Subject: [PATCH 2/2] revert main release and add on demand --- .github/workflows/main.yml | 8 +++---- .github/workflows/release-on-demand.yml | 30 +++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/release-on-demand.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1e82050..bae9920 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -20,17 +20,15 @@ jobs: release: name: Release - runs-on: ipfs-dev-gateway + runs-on: ubuntu-latest if: github.event_name == 'push' steps: - uses: actions/checkout@v2 - name: Setup node uses: actions/setup-node@v1 with: - node-version: "20.x" - - name: Log in to GitHub Container Registry - run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin + node-version: "18.x" - name: Publish - run: npx @dappnode/dappnodesdk publish patch --github_release --timeout 1h --content_provider=http://10.200.200.7:5001 --eth_provider=https://web3.dappnode.net + run: npx @dappnode/dappnodesdk publish patch --dappnode_team_preset env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release-on-demand.yml b/.github/workflows/release-on-demand.yml new file mode 100644 index 0000000..0d54958 --- /dev/null +++ b/.github/workflows/release-on-demand.yml @@ -0,0 +1,30 @@ +name: "Main" +on: + workflow_dispatch: + +jobs: + build-test: + runs-on: ubuntu-16.04 + name: Build test + if: github.event_name != 'push' + steps: + - name: Checkout + uses: actions/checkout@v2 + - run: docker-compose build + + release: + name: Release + runs-on: ipfs-dev-gateway + if: github.event_name == 'workflow_dispatch' + steps: + - uses: actions/checkout@v2 + - name: Setup node + uses: actions/setup-node@v1 + with: + node-version: "20.x" + - name: Log in to GitHub Container Registry + run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin + - name: Publish + run: npx @dappnode/dappnodesdk publish patch --github_release --timeout 1h --content_provider=http://10.200.200.7:5001 --eth_provider=https://web3.dappnode.net + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file