Compare commits

..

16 Commits

Author SHA1 Message Date
Gautham Varma K bf6bd43f48 Improve build scripts (#16)
* Better handle installation requirements

* Install TVHeadend from edge repos

* Refactor Build Script

* Try installing a different git version

* Pin to Specific Versions of musl and gcc

To fix build CI

* Bump base images properly

* Prettified Code!

* Remove git and mono pinned to a specific version

Co-authored-by: GauthamVarmaK <GauthamVarmaK@users.noreply.github.com>
2021-06-19 11:40:04 +05:30
Gautham Varma K ade2f59ae1 Bump Base Image from 9.2.0 to 9.2.2 (#15)
* Bump Base Image from 9.2.0 to 9.2.2

* Bump git from 2.31.1-r1 to 2.32.0-r0

* Upgrade Dependencies before installing Streamlink

To try fix cyclic dependency version issues when installing musl and gcc

* Revert "Upgrade Dependencies before installing Streamlink"

This reverts commit e4f8604931.
2021-06-19 10:02:44 +05:30
dependabot[bot] ea49461d4e Bump frenck/action-addon-information from 1.1 to 1.2 (#14)
Bumps [frenck/action-addon-information](https://github.com/frenck/action-addon-information) from 1.1 to 1.2.
- [Release notes](https://github.com/frenck/action-addon-information/releases)
- [Commits](https://github.com/frenck/action-addon-information/compare/v1.1...v1.2)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-31 14:07:38 +05:30
dependabot[bot] 375bbff2ec Bump actions/cache from 2.1.5 to 2.1.6 (#13)
Bumps [actions/cache](https://github.com/actions/cache) from 2.1.5 to 2.1.6.
- [Release notes](https://github.com/actions/cache/releases)
- [Commits](https://github.com/actions/cache/compare/v2.1.5...v2.1.6)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-28 12:51:08 +05:30
dependabot[bot] 7d1310f9b8 Bump docker/setup-qemu-action from 1.1.0 to 1.2.0 (#12)
Bumps [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action) from 1.1.0 to 1.2.0.
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](https://github.com/docker/setup-qemu-action/compare/v1.1.0...v1.2.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-27 13:34:53 +05:30
dependabot[bot] 5f0d19622d Bump docker/build-push-action from 2.4.0 to 2.5.0 (#11)
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 2.4.0 to 2.5.0.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v2.4.0...v2.5.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-27 13:34:38 +05:30
dependabot[bot] 86e7cc3f82 Bump micnncim/action-label-syncer from 1.2.0 to 1.3.0 (#10)
Bumps [micnncim/action-label-syncer](https://github.com/micnncim/action-label-syncer) from 1.2.0 to 1.3.0.
- [Release notes](https://github.com/micnncim/action-label-syncer/releases)
- [Commits](https://github.com/micnncim/action-label-syncer/compare/v1.2.0...v1.3.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-24 14:18:57 +05:30
Gautham Varma K be77348a38 ⬆️ Bump WebGrabPlus from v2.1.0 to v3.1.0 (#9)
Bumps WebGrabPlus from v2.1.0 to v3.1.0
2021-05-20 13:23:49 +05:30
dependabot[bot] 730b57b4a6 Bump frenck/action-addon-information from 1.0.0 to 1.1 (#8)
Bumps [frenck/action-addon-information](https://github.com/frenck/action-addon-information) from 1.0.0 to 1.1.
- [Release notes](https://github.com/frenck/action-addon-information/releases)
- [Commits](https://github.com/frenck/action-addon-information/compare/v1.0.0...v1.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-20 12:51:27 +05:30
dependabot[bot] ec20e62053 Bump actions/stale from 3.0.18 to 3.0.19 (#7)
Bumps [actions/stale](https://github.com/actions/stale) from 3.0.18 to 3.0.19.
- [Release notes](https://github.com/actions/stale/releases)
- [Commits](https://github.com/actions/stale/compare/v3.0.18...v3.0.19)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-18 15:09:12 +05:30
dependabot[bot] 3e777b4f9f Bump frenck/action-addon-linter from 2 to 2.1 (#6)
Bumps [frenck/action-addon-linter](https://github.com/frenck/action-addon-linter) from 2 to 2.1.
- [Release notes](https://github.com/frenck/action-addon-linter/releases)
- [Commits](https://github.com/frenck/action-addon-linter/compare/v2...v2.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-12 13:58:45 +05:30
dependabot[bot] 359b52adea Bump brpaz/hadolint-action from v1.4.0 to v1.5.0 (#5)
Bumps [brpaz/hadolint-action](https://github.com/brpaz/hadolint-action) from v1.4.0 to v1.5.0.
- [Release notes](https://github.com/brpaz/hadolint-action/releases)
- [Changelog](https://github.com/hadolint/hadolint-action/blob/master/.releaserc)
- [Commits](https://github.com/brpaz/hadolint-action/compare/v1.4.0...c27bd9edc1e95eed30474db8f295ff5807ebca14)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-10 21:27:36 +05:30
dependabot[bot] 9aa0d8683a Bump docker/setup-buildx-action from v1.2.0 to v1.3.0 (#4)
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from v1.2.0 to v1.3.0.
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/v1.2.0...0d135e0c2fc0dba0729c1a47ecfcf5a3c7f8579e)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-30 17:18:42 +05:30
dependabot[bot] 5457aa18e5 Bump docker/login-action from v1.8.0 to v1.9.0 (#3)
Bumps [docker/login-action](https://github.com/docker/login-action) from v1.8.0 to v1.9.0.
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/v1.8.0...28218f9b04b4f3f62068d7b6ce6ca5b26e35336c)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-29 14:31:06 +05:30
dependabot[bot] 3b53f9e73c Bump docker/setup-buildx-action from v1.1.2 to v1.2.0 (#2)
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from v1.1.2 to v1.2.0.
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/v1.1.2...012185ccbeb554a7f5f987bea0f1a73519b3cdf5)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-26 20:03:11 +05:30
dependabot[bot] c8d960f711 Bump docker/setup-qemu-action from v1.0.2 to v1.1.0 (#1)
Bumps [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action) from v1.0.2 to v1.1.0.
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](https://github.com/docker/setup-qemu-action/compare/v1.0.2...c308fdd69d26ed66f4506ebd74b180abe5362145)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-26 20:02:59 +05:30
7 changed files with 87 additions and 72 deletions
+7 -7
View File
@@ -27,7 +27,7 @@ jobs:
uses: actions/checkout@v2.3.4 uses: actions/checkout@v2.3.4
- name: 🚀 Run add-on information action - name: 🚀 Run add-on information action
id: information id: information
uses: frenck/action-addon-information@v1.0.0 uses: frenck/action-addon-information@v1.2
lint-addon: lint-addon:
name: Lint Add-on name: Lint Add-on
@@ -38,7 +38,7 @@ jobs:
- name: ⤵️ Check out code from GitHub - name: ⤵️ Check out code from GitHub
uses: actions/checkout@v2.3.4 uses: actions/checkout@v2.3.4
- name: 🚀 Run Add-on Lint - name: 🚀 Run Add-on Lint
uses: frenck/action-addon-linter@v2 uses: frenck/action-addon-linter@v2.1
with: with:
community: true community: true
path: "./${{ needs.information.outputs.target }}" path: "./${{ needs.information.outputs.target }}"
@@ -52,7 +52,7 @@ jobs:
- name: ⤵️ Check out code from GitHub - name: ⤵️ Check out code from GitHub
uses: actions/checkout@v2.3.4 uses: actions/checkout@v2.3.4
- name: 🚀 Run Hadolint - name: 🚀 Run Hadolint
uses: brpaz/hadolint-action@v1.4.0 uses: brpaz/hadolint-action@v1.5.0
with: with:
dockerfile: "./${{ needs.information.outputs.target }}/Dockerfile" dockerfile: "./${{ needs.information.outputs.target }}/Dockerfile"
@@ -129,7 +129,7 @@ jobs:
uses: actions/checkout@v2.3.4 uses: actions/checkout@v2.3.4
- name: 🏗 Set up build cache - name: 🏗 Set up build cache
id: cache id: cache
uses: actions/cache@v2.1.5 uses: actions/cache@v2.1.6
with: with:
path: /tmp/.docker-cache path: /tmp/.docker-cache
key: key:
@@ -138,9 +138,9 @@ jobs:
restore-keys: | restore-keys: |
docker-${{ github.ref }}-${{ matrix.architecture }} docker-${{ github.ref }}-${{ matrix.architecture }}
- name: 🏗 Set up QEMU - name: 🏗 Set up QEMU
uses: docker/setup-qemu-action@v1.0.2 uses: docker/setup-qemu-action@v1.2.0
- name: 🏗 Set up Docker Buildx - name: 🏗 Set up Docker Buildx
uses: docker/setup-buildx-action@v1.1.2 uses: docker/setup-buildx-action@v1.3.0
- name: 🏗 Set up CodeNotary - name: 🏗 Set up CodeNotary
run: bash <(curl https://getvcn.codenotary.com -L) run: bash <(curl https://getvcn.codenotary.com -L)
- name: ️ Compose build flags - name: ️ Compose build flags
@@ -178,7 +178,7 @@ jobs:
--exit-status \ --exit-status \
'.verification.status == 0' '.verification.status == 0'
- name: 🚀 Build - name: 🚀 Build
uses: docker/build-push-action@v2.4.0 uses: docker/build-push-action@v2.5.0
with: with:
push: false push: false
context: ${{ needs.information.outputs.target }} context: ${{ needs.information.outputs.target }}
+6 -6
View File
@@ -36,7 +36,7 @@ jobs:
uses: actions/checkout@v2.3.4 uses: actions/checkout@v2.3.4
- name: 🚀 Run add-on information action - name: 🚀 Run add-on information action
id: information id: information
uses: frenck/action-addon-information@v1.0.0 uses: frenck/action-addon-information@v1.2
- name: ️ Gather version and environment - name: ️ Gather version and environment
id: release id: release
run: | run: |
@@ -72,7 +72,7 @@ jobs:
uses: actions/checkout@v2.3.4 uses: actions/checkout@v2.3.4
- name: 🏗 Set up build cache - name: 🏗 Set up build cache
id: cache id: cache
uses: actions/cache@v2.1.5 uses: actions/cache@v2.1.6
with: with:
path: /tmp/.docker-cache path: /tmp/.docker-cache
key: key:
@@ -81,9 +81,9 @@ jobs:
restore-keys: | restore-keys: |
docker-${{ github.ref }}-${{ matrix.architecture }} docker-${{ github.ref }}-${{ matrix.architecture }}
- name: 🏗 Set up QEMU - name: 🏗 Set up QEMU
uses: docker/setup-qemu-action@v1.0.2 uses: docker/setup-qemu-action@v1.2.0
- name: 🏗 Set up Docker Buildx - name: 🏗 Set up Docker Buildx
uses: docker/setup-buildx-action@v1.1.2 uses: docker/setup-buildx-action@v1.3.0
- name: 🏗 Set up CodeNotary - name: 🏗 Set up CodeNotary
run: bash <(curl https://getvcn.codenotary.com -L) run: bash <(curl https://getvcn.codenotary.com -L)
- name: ️ Compose build flags - name: ️ Compose build flags
@@ -108,7 +108,7 @@ jobs:
exit 1 exit 1
fi fi
- name: 🏗 Login to GitHub Container Registry - name: 🏗 Login to GitHub Container Registry
uses: docker/login-action@v1.8.0 uses: docker/login-action@v1.9.0
with: with:
registry: ghcr.io registry: ghcr.io
username: ${{ github.repository_owner }} username: ${{ github.repository_owner }}
@@ -127,7 +127,7 @@ jobs:
--exit-status \ --exit-status \
'.verification.status == 0' '.verification.status == 0'
- name: 🚀 Build - name: 🚀 Build
uses: docker/build-push-action@v2.4.0 uses: docker/build-push-action@v2.5.0
with: with:
load: true load: true
# yamllint disable rule:line-length # yamllint disable rule:line-length
+1 -1
View File
@@ -17,6 +17,6 @@ jobs:
- name: ⤵️ Check out code from GitHub - name: ⤵️ Check out code from GitHub
uses: actions/checkout@v2.3.4 uses: actions/checkout@v2.3.4
- name: 🚀 Run Label Syncer - name: 🚀 Run Label Syncer
uses: micnncim/action-label-syncer@v1.2.0 uses: micnncim/action-label-syncer@v1.3.0
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+1 -1
View File
@@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: 🚀 Run stale - name: 🚀 Run stale
uses: actions/stale@v3.0.18 uses: actions/stale@v3.0.19
with: with:
repo-token: ${{ secrets.GITHUB_TOKEN }} repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-stale: 30 days-before-stale: 30
+1 -5
View File
@@ -1,11 +1,7 @@
ARG BUILD_FROM=ghcr.io/hassio-addons/base/amd64:9.2.0 ARG BUILD_FROM=ghcr.io/hassio-addons/base/amd64:9.2.2
# hadolint ignore=DL3006 # hadolint ignore=DL3006
FROM ${BUILD_FROM} FROM ${BUILD_FROM}
RUN echo 'http://dl-cdn.alpinelinux.org/alpine/edge/testing' >> /etc/apk/repositories
RUN echo 'http://dl-cdn.alpinelinux.org/alpine/edge/community' >> /etc/apk/repositories
RUN echo 'http://dl-cdn.alpinelinux.org/alpine/edge/main' >> /etc/apk/repositories
COPY run.sh /run.sh COPY run.sh /run.sh
RUN chmod +x /run.sh RUN chmod +x /run.sh
RUN /run.sh RUN /run.sh
+5 -5
View File
@@ -1,9 +1,9 @@
{ {
"build_from": { "build_from": {
"aarch64": "ghcr.io/hassio-addons/base/aarch64:9.2.0", "aarch64": "ghcr.io/hassio-addons/base/aarch64:9.2.2",
"amd64": "ghcr.io/hassio-addons/base/amd64:9.2.0", "amd64": "ghcr.io/hassio-addons/base/amd64:9.2.2",
"armhf": "ghcr.io/hassio-addons/base/armhf:9.2.0", "armhf": "ghcr.io/hassio-addons/base/armhf:9.2.2",
"armv7": "ghcr.io/hassio-addons/base/armv7:9.2.0", "armv7": "ghcr.io/hassio-addons/base/armv7:9.2.2",
"i386": "ghcr.io/hassio-addons/base/i386:9.2.0" "i386": "ghcr.io/hassio-addons/base/i386:9.2.2"
} }
} }
+39 -20
View File
@@ -1,40 +1,59 @@
#!/usr/bin/env bashio #!/usr/bin/env bashio
bashio::log.info "[TVHeadend] Installing TVHeadend" bashio::log.info "[TVHeadend] Installing TVHeadend"
apk update && apk add --no-cache tvheadend=4.2.8-r3 git=2.31.1-r1 mono=6.12.0.122-r1 apk update && apk add --no-cache tvheadend=4.2.8-r3
mkdir -p /config/tvheadend/recordings mkdir -p /config/tvheadend/recordings
bashio::log.info '[TVHeadend] Setup completed without errors!!' bashio::log.info '[TVHeadend] Setup completed without errors!!'
mkdir -p ~/.wg++ check_webgrabplus(){
ln -sf /config/tvheadend/wg++/guide.xml ~/.wg++/guide.xml if [ -z "$(ls -A /config/tvheadend/wg++)" ]; then return 1; else return 0; fi
}
if [ "$(ls -A /config/tvheadend/wg++)" ]; then webgrabplus_install(){
bashio::log.info "[Webgrab+] Webgrab+ already installed" if apk update; then
else bashio::log.info '[Webgrab+] APK: Installing required packages.'
bashio::log.info "[Webgrab+] No webgrab+ installation found - Installing webgrab+" if apk add --no-cache --virtual .build-deps git mono --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing; then
bashio::log.info '[Webgrab+] Installing Webgrab+.'
mkdir -p ~/.wg++
ln -sf /config/tvheadend/wg++/guide.xml ~/.wg++/guide.xml
cd /tmp && \ cd /tmp && \
wget http://www.webgrabplus.com/sites/default/files/download/SW/V2.1.0/WebGrabPlus_V2.1_install.tar.gz && \ wget http://webgrabplus.com/sites/default/files/download/SW/V3.1.0/WebGrabPlus_V3.1_install.tar.gz && \
tar -xvf WebGrabPlus_V2.1_install.tar.gz && rm WebGrabPlus_V2.1_install.tar.gz && \ tar -xvf WebGrabPlus_V3.1_install.tar.gz && rm WebGrabPlus_V3.1_install.tar.gz && \
mv .wg++/ /config/tvheadend/wg++ && \ mv .wg++/ /config/tvheadend/wg++ && cd /config/tvheadend/wg++ && ./install.sh
cd /config/tvheadend/wg++ && \
./install.sh
rm -rf siteini.pack/ && \ rm -rf siteini.pack/ && \
git clone https://github.com/DeBaschdi/webgrabplus-siteinipack.git && \ git clone https://github.com/DeBaschdi/webgrabplus-siteinipack.git && \
cp -R webgrabplus-siteinipack/siteini.pack/ siteini.pack && \ cp -R webgrabplus-siteinipack/siteini.pack/ siteini.pack && \
cp siteini.pack/International/horizon.tv.* siteini.user/ cp siteini.pack/International/horizon.tv.* siteini.user/
wget -O /usr/bin/tv_grab_wg++ http://www.webgrabplus.com/sites/default/files/tv_grab_wg.txt && \
chmod a+x /usr/bin/tv_grab_wg++
echo "0 0 * * * /config/tvheadend/wg++/run.sh" >> /var/spool/cron/root
crond
else
bashio::log.info '[Webgrab+] APK: Critical error. Unable install required packages.'
exit 1
fi
bashio::log.info '[Webgrab+] APK: Removing packages no longer required.'
apk del .build-deps git mono
else
bashio::log.error '[Webgrab+] APK: Critical error. Unable to update pkg list. Check connectivity.'
exit 1
fi
bashio::log.info '[Webgrab+] Finsihed all APK and PIP3 updates and installs.'
}
if check_webgrabplus; then
bashio::log.info "[Webgrab+] Webgrab+ already installed"
else
bashio::log.info "[Webgrab+] No webgrab+ installation found - Installing webgrab+"
webgrabplus_install
fi fi
wget -O /usr/bin/tv_grab_wg++ http://www.webgrabplus.com/sites/default/files/tv_grab_wg.txt && \
chmod a+x /usr/bin/tv_grab_wg++
bashio::log.info '[Webgrab+] Setup completed without errors!!' bashio::log.info '[Webgrab+] Setup completed without errors!!'
echo "0 0 * * * /config/tvheadend/wg++/run.sh" >> /var/spool/cron/root
crond
check_streamlink () { check_streamlink () {
if [ -z "$(command -v streamlink)" ]; then return 1; else return 0; fi if [ -z "$(command -v streamlink)" ]; then return 1; else return 0; fi
} }
@@ -51,7 +70,7 @@ streamlink_install () {
bashio::log.info '[StreamLink] APK: Updating pkg list.' bashio::log.info '[StreamLink] APK: Updating pkg list.'
if apk update; then if apk update; then
bashio::log.info '[StreamLink] APK: Installing required packages.' bashio::log.info '[StreamLink] APK: Installing required packages.'
if apk add --no-cache py3-pip && apk add --no-cache --virtual .build-deps gcc musl-dev; then if apk add --no-cache py3-pip && apk add --no-cache --virtual .build-deps musl-dev gcc; then
bashio::log.info '[StreamLink] PIP3: Updating and installing required packages.' bashio::log.info '[StreamLink] PIP3: Updating and installing required packages.'
if ! pip3 install --no-cache --upgrade setuptools; then bashio::log.error '[StreamLink] PIP3: Error while upgrading setuptools.'; fi if ! pip3 install --no-cache --upgrade setuptools; then bashio::log.error '[StreamLink] PIP3: Error while upgrading setuptools.'; fi
if ! pip3 install --no-cache streamlink; then bashio::log.error '[StreamLink] PIP3: Error while installing Streamlink.'; fi if ! pip3 install --no-cache streamlink; then bashio::log.error '[StreamLink] PIP3: Error while installing Streamlink.'; fi