diff --git a/.github/workflows/release-publish.yml b/.github/workflows/release-publish.yml index 83f2df7..60b47a1 100644 --- a/.github/workflows/release-publish.yml +++ b/.github/workflows/release-publish.yml @@ -23,7 +23,13 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node: [18, 20] + include: + - node: 18 + platforms: linux/amd64, linux/arm64, linux/arm/v7 + - node: 20 + platforms: linux/amd64, linux/arm64, linux/arm/v7 + - node: 24 + platforms: linux/amd64, linux/arm64 steps: - name: checkout uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -56,7 +62,7 @@ jobs: file: docker/Dockerfile tags: ${{ steps.meta.outputs.tags }} push: true - platforms: linux/amd64, linux/arm64, linux/arm/v7 + platforms: ${{ matrix.platforms }} build-args: | NODE_VERSION=${{ matrix.node }} - name: Publish README.md to Docker hub @@ -66,55 +72,3 @@ jobs: username: flowfuse password: ${{ secrets.DOCKER_HUB_PASSWORD }} readme-filepath: ./docker/README.md - # publish_legacy: - # needs: [publish] - # runs-on: ubuntu-latest - # steps: - # - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - # - uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0 - # with: - # node-version: 16 - # - name: "Install jq" - # run: sudo apt-get install -y jq - # - name: "Patch module name" - # run: | - # cat package.json | jq '.name = "@flowforge/flowforge-device-agent"' > package.json-patched - # mv package.json-patched package.json - # - run: npm install - # - uses: JS-DevTools/npm-publish@0fd2f4369c5d6bcfcde6091a7c527d810b9b5c3f # v4.1.5 - # with: - # token: ${{ secrets.NPM_PUBLISH_TOKEN_FLOWFORGE }} - # - name: Docker Meta Data - # id: meta - # uses: docker/metadata-action@030e881283bb7a6894de51c315a6bfe6a94e05cf # v6.0.0 - # with: - # tags: | - # type=semver,event=tag,pattern={{version}} - # flavor: | - # latest=true - # images: | - # flowforge/device-agent - # - name: Setup QEMU - # uses: docker/setup-qemu-action@ce360397dd3f832beb865e1373c09c0e9f86d70a # v4.0.0 - # - name: Setup Docker buildx - # uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4.0.0 - # - name: docker login - # uses: docker/login-action@b45d80f862d83dbcd57f89517bcf500b2ab88fb2 # v4.0.0 - # with: - # username: flowforge - # password: ${{ secrets.DOCKER_HUB_PASSWORD_FLOWFORGE }} - # - name: Build and push FlowFuse Device Agent container - # uses: docker/build-push-action@d08e5c354a6adb9ed34480a06d141179aa583294 # v7.0.0 - # with: - # context: docker - # file: docker/Dockerfile_flowforge - # tags: ${{ steps.meta.outputs.tags }} - # push: true - # platforms: linux/amd64, linux/arm64, linux/arm/v7 - # - name: Publish README.md to Docker hub - # uses: peter-evans/dockerhub-description@1b9a80c056b620d92cedb9d9b5a223409c68ddfa # v5.0.0 - # with: - # repository: flowforge/device-agent - # username: flowforge - # password: ${{ secrets.DOCKER_HUB_PASSWORD_FLOWFORGE }} - # readme-filepath: ./docker/README.md