From 89a88a97275830b9a5291475eb97faa51fba8290 Mon Sep 17 00:00:00 2001 From: Markus Kirberg Date: Fri, 27 Dec 2024 20:20:58 +0100 Subject: [PATCH] dockerfile --- .github/workflows/Dockerfile-mos | 7 +++++++ .github/workflows/build.yaml | 11 ++++------- 2 files changed, 11 insertions(+), 7 deletions(-) create mode 100644 .github/workflows/Dockerfile-mos diff --git a/.github/workflows/Dockerfile-mos b/.github/workflows/Dockerfile-mos new file mode 100644 index 00000000..387a8daf --- /dev/null +++ b/.github/workflows/Dockerfile-mos @@ -0,0 +1,7 @@ +FROM ubuntu:22.04 + +RUN apt-get update && \ + apt-get install -y -q software-properties-common && add-apt-repository -y ppa:mongoose-os/mos && \ + apt -q install -y mos-latest docker.io make git && \ + apt-get clean && \ + rm -rf /var/lib/apt/lists/* diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index af5308b0..7220db4d 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -8,6 +8,8 @@ jobs: runs-on: ubuntu-latest container: image: shellyhomekit/mos:latest + volumes: + - /home/runner/work:/home/runner/work strategy: fail-fast: false matrix: @@ -23,14 +25,9 @@ jobs: run: docker build -t mgos/esp32-build:4.4.1-r7 -f .github/workflows/Dockerfile-esp32-build . - name: Build run: | - /usr/bin/git config --global --add safe.directory /__w/shelly-homekit/shelly-homekit - chmod -R o+rx /__w/shelly-homekit/shelly-homekit + 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: Debug - if: always() - run: | - ls -la /__w/shelly-homekit/shelly-homekit/deps/modules/mongoose-os/platforms/esp8266/ - whoami - name: Upload firmware artifacts uses: actions/upload-artifact@v4 with: