Solve Compression Error - Build Debian Package in Docker (#263)

* Build Debian Package in Docker

* Fix docker run

* Fix Formatting

* Fix YAML Errors

* Test Formatting Fix

* Pin to bullseye-slim

* Build Debian Package in Docker

* Bump Version Number
This commit is contained in:
Matheson Steplock 2022-12-11 15:33:29 -05:00 committed by GitHub
parent becd4e691a
commit 730bf01008
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 5 deletions

View file

@ -10,8 +10,12 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
- run: chmod 555 homeassistant-supervised/DEBIAN/p* - name: Build Debian Package in Docker
- run: dpkg-deb --build --root-owner-group homeassistant-supervised run: |
docker run --rm -v $(pwd):/tmp debian:bullseye-slim bash -c \
"cd /tmp \
&& chmod 555 homeassistant-supervised/DEBIAN/p* \
&& dpkg-deb --build --root-owner-group homeassistant-supervised"
- name: Upload - name: Upload
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:

View file

@ -12,8 +12,12 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
- run: chmod 555 homeassistant-supervised/DEBIAN/p* - name: Build Debian Package in Docker
- run: dpkg-deb --build --root-owner-group homeassistant-supervised run: |
docker run --rm -v $(pwd):/tmp debian:bullseye-slim bash -c \
"cd /tmp \
&& chmod 555 homeassistant-supervised/DEBIAN/p* \
&& dpkg-deb --build --root-owner-group homeassistant-supervised"
- name: Release - name: Release
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/') if: startsWith(github.ref, 'refs/tags/')

View file

@ -1,6 +1,6 @@
Package: homeassistant-supervised Package: homeassistant-supervised
Section: base Section: base
Version: 1.4.0 Version: 1.4.1
Priority: optional Priority: optional
Architecture: all Architecture: all
Depends: curl, bash, docker-ce, dbus, network-manager, apparmor, jq, systemd, os-agent, systemd-journal-remote Depends: curl, bash, docker-ce, dbus, network-manager, apparmor, jq, systemd, os-agent, systemd-journal-remote