From 62039f766c3f171c8d93df37bce45b6abf262f2e Mon Sep 17 00:00:00 2001 From: Marco Colombo Date: Mon, 3 Nov 2025 09:11:14 +0100 Subject: [PATCH 1/4] Added dev image build --- .github/workflows/docker-github-dev-build.yml | 96 +++++++++++++++++++ 1 file changed, 96 insertions(+) create mode 100644 .github/workflows/docker-github-dev-build.yml diff --git a/.github/workflows/docker-github-dev-build.yml b/.github/workflows/docker-github-dev-build.yml new file mode 100644 index 000000000..0276c2da0 --- /dev/null +++ b/.github/workflows/docker-github-dev-build.yml @@ -0,0 +1,96 @@ +name: DEV - build & publish Arduino dev containers + +on: + workflow_dispatch: + +env: + REGISTRY: ghcr.io + DEV_REGISTRY_PATH: ghcr.io/${{ github.repository_owner }}/ + +permissions: + contents: write + packages: write + id-token: write + +jobs: + build: + runs-on: ubuntu-latest + env: + PYTHON_VERSION: "3.13" + TASKFILE_VERSION: "3.45.4" + TASKFILE_PATH: "/home/runner/go/bin" + strategy: + fail-fast: false + matrix: + include: + - dockerfile: ./containers/python-apps-base/Dockerfile + context: ./containers/python-apps-base + image: ghcr.io/bcmi-labs/app-bricks/python-apps-base + build_python_package: true + - dockerfile: ./containers/ei-models-runner/Dockerfile + context: ./containers/ei-models-runner + image: ghcr.io/bcmi-labs/app-bricks/ei-models-runner + build_python_package: false + max-parallel: 2 + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + if: matrix.build_python_package + with: + python-version: ${{ env.PYTHON_VERSION }} + + - name: Install and build library + if: matrix.build_python_package + env: + PUBLIC_IMAGE_REGISTRY_BASE: ${{ env.DEV_REGISTRY_PATH }}/ + run: | + pip install go-task-bin==${{ env.TASKFILE_VERSION }} + task init:ci + task build-dev + cp ./dist/arduino*.whl ./containers/python-apps-base/ + + #Add support for more platforms with QEMU + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + with: + platforms: linux/arm64 + + - name: Setup Docker buildx + uses: docker/setup-buildx-action@v3 + + - name: Log into registry ${{ env.REGISTRY }} + uses: docker/login-action@v3 + with: + registry: ${{ env.REGISTRY }} + username: ${{ github.repository_owner }} + password: ${{ secrets.GITHUB_TOKEN }} + + # Extract metadata from the GitHub context + - name: Extract Docker metadata + id: meta + uses: docker/metadata-action@v5 + with: + tags: | + type=raw,value=dev-latest,enable=true + images: ${{ matrix.image }} + + # Build and push Docker image with Buildx (don't push on PR) + - name: Build and push Docker image + id: build-and-push + uses: docker/build-push-action@v6 + with: + context: ${{ matrix.context }} + file: ${{ matrix.dockerfile }} + push: true + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} + platforms: linux/arm64 + cache-from: type=gha + cache-to: type=gha,mode=max + provenance: false + build-args: | + REGISTRY=${{ env.DEV_REGISTRY_PATH }} From c8f7660d5c3f74dd23c96090c1e640d4cab0561e Mon Sep 17 00:00:00 2001 From: Marco Colombo Date: Mon, 3 Nov 2025 09:29:12 +0100 Subject: [PATCH 2/4] Fix image pointers for development gitflow --- .github/workflows/docker-github-dev-build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-github-dev-build.yml b/.github/workflows/docker-github-dev-build.yml index 0276c2da0..063ec9938 100644 --- a/.github/workflows/docker-github-dev-build.yml +++ b/.github/workflows/docker-github-dev-build.yml @@ -25,11 +25,11 @@ jobs: include: - dockerfile: ./containers/python-apps-base/Dockerfile context: ./containers/python-apps-base - image: ghcr.io/bcmi-labs/app-bricks/python-apps-base + image: ghcr.io/${{ github.repository_owner }}/app-bricks/python-apps-base build_python_package: true - dockerfile: ./containers/ei-models-runner/Dockerfile context: ./containers/ei-models-runner - image: ghcr.io/bcmi-labs/app-bricks/ei-models-runner + image: ghcr.io/${{ github.repository_owner }}/app-bricks/ei-models-runner build_python_package: false max-parallel: 2 From cefedd89edfcadf096bd3bc97c3b2eef3f21e3e1 Mon Sep 17 00:00:00 2001 From: Marco Colombo Date: Fri, 27 Mar 2026 15:24:35 +0100 Subject: [PATCH 3/4] cleanup and align to upstream --- .github/workflows/docker-github-dev-build.yml | 96 ------------------- 1 file changed, 96 deletions(-) delete mode 100644 .github/workflows/docker-github-dev-build.yml diff --git a/.github/workflows/docker-github-dev-build.yml b/.github/workflows/docker-github-dev-build.yml deleted file mode 100644 index 063ec9938..000000000 --- a/.github/workflows/docker-github-dev-build.yml +++ /dev/null @@ -1,96 +0,0 @@ -name: DEV - build & publish Arduino dev containers - -on: - workflow_dispatch: - -env: - REGISTRY: ghcr.io - DEV_REGISTRY_PATH: ghcr.io/${{ github.repository_owner }}/ - -permissions: - contents: write - packages: write - id-token: write - -jobs: - build: - runs-on: ubuntu-latest - env: - PYTHON_VERSION: "3.13" - TASKFILE_VERSION: "3.45.4" - TASKFILE_PATH: "/home/runner/go/bin" - strategy: - fail-fast: false - matrix: - include: - - dockerfile: ./containers/python-apps-base/Dockerfile - context: ./containers/python-apps-base - image: ghcr.io/${{ github.repository_owner }}/app-bricks/python-apps-base - build_python_package: true - - dockerfile: ./containers/ei-models-runner/Dockerfile - context: ./containers/ei-models-runner - image: ghcr.io/${{ github.repository_owner }}/app-bricks/ei-models-runner - build_python_package: false - max-parallel: 2 - - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Set up Python - uses: actions/setup-python@v5 - if: matrix.build_python_package - with: - python-version: ${{ env.PYTHON_VERSION }} - - - name: Install and build library - if: matrix.build_python_package - env: - PUBLIC_IMAGE_REGISTRY_BASE: ${{ env.DEV_REGISTRY_PATH }}/ - run: | - pip install go-task-bin==${{ env.TASKFILE_VERSION }} - task init:ci - task build-dev - cp ./dist/arduino*.whl ./containers/python-apps-base/ - - #Add support for more platforms with QEMU - - name: Set up QEMU - uses: docker/setup-qemu-action@v3 - with: - platforms: linux/arm64 - - - name: Setup Docker buildx - uses: docker/setup-buildx-action@v3 - - - name: Log into registry ${{ env.REGISTRY }} - uses: docker/login-action@v3 - with: - registry: ${{ env.REGISTRY }} - username: ${{ github.repository_owner }} - password: ${{ secrets.GITHUB_TOKEN }} - - # Extract metadata from the GitHub context - - name: Extract Docker metadata - id: meta - uses: docker/metadata-action@v5 - with: - tags: | - type=raw,value=dev-latest,enable=true - images: ${{ matrix.image }} - - # Build and push Docker image with Buildx (don't push on PR) - - name: Build and push Docker image - id: build-and-push - uses: docker/build-push-action@v6 - with: - context: ${{ matrix.context }} - file: ${{ matrix.dockerfile }} - push: true - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} - platforms: linux/arm64 - cache-from: type=gha - cache-to: type=gha,mode=max - provenance: false - build-args: | - REGISTRY=${{ env.DEV_REGISTRY_PATH }} From d8b1e4f509fe4be65d22838a15bd4135cdca048c Mon Sep 17 00:00:00 2001 From: Marco Colombo Date: Mon, 4 May 2026 10:41:41 +0200 Subject: [PATCH 4/4] add latest download step in release creation --- .github/workflows/docker-publish.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index b27437528..96b325dbb 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -402,6 +402,12 @@ jobs: if: startsWith(needs.detect.outputs.tag_ref, 'release/') needs: [ detect, upload-whl, build, build-downstream ] steps: + - name: Download wheel artifact + uses: actions/download-artifact@v4 + with: + name: whl + path: dist/ + - name: Upload release asset uses: softprops/action-gh-release@v2 with: