Skip to content

Commit

Permalink
dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
markirb committed Dec 27, 2024
1 parent 42cc330 commit 89a88a9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/Dockerfile-mos
Original file line number Diff line number Diff line change
@@ -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/*
11 changes: 4 additions & 7 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit 89a88a9

Please sign in to comment.