Skip to content

dockerfile

dockerfile #496

Workflow file for this run

name: build-shelly-homekit
on:
push:
pull_request:
jobs:
build:
name: Build ${{ matrix.model }}
runs-on: ubuntu-latest
container:
image: shellyhomekit/mos:latest
volumes:
- /home/runner/work:/home/runner/work
strategy:
fail-fast: false
matrix:
model:
- ShellyVintage
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Build docker image # remove if newer mos docker image is available
if: ${{ contains( matrix.model , 'Plus') || contains( matrix.model , 'Gen3') }}
run: docker build -t mgos/esp32-build:4.4.1-r7 -f .github/workflows/Dockerfile-esp32-build .
- name: Build
run: |
cd /home/runner/work/shelly-homekit/shelly-homekit
git config --global --add safe.directory /home/runner/work/shelly-homekit/shelly-homekit
make ${{ matrix.model }} LOCAL=1 RELEASE=1 RELEASE_SUFFIX=$(.github/version.py --suffix)
- name: Upload firmware artifacts
uses: actions/upload-artifact@v4
with:
name: release-${{ matrix.model }}
path: releases/**/shelly-homekit-${{ matrix.model }}.zip
if-no-files-found: warn
merge:
needs: build
runs-on: ubuntu-latest
steps:
- name: Merge Artifacts
uses: actions/upload-artifact/merge@v4
with:
name: all-releases
pattern: release-*