forked from sibbl/hass-lovelace-kindle-screensaver
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
48c0799
commit d874558
Showing
5 changed files
with
108 additions
and
59 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
name: Docker build and publish | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
build-amd64: | ||
name: Build and publish amd64 image | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Get version | ||
env: | ||
TAG_NAME: ${{ github.event.release.tag_name }} | ||
run: echo "VERSION=${TAG_NAME#v}" >> $GITHUB_ENV | ||
- name: Patch files | ||
uses: onlyutkarsh/[email protected] | ||
with: | ||
files: | | ||
lovelace-kindle-screensaver/config.json | ||
patch-syntax: | | ||
= /version => "${{ env.VERSION }}" | ||
- name: publish amd64 docker files | ||
if: github.event_name != 'pull_request' | ||
run: docker run --rm --privileged -v /var/run/docker.sock:/var/run/docker.sock -v ~/.docker:/root/.docker -v "$(pwd)":/data homeassistant/amd64-builder -t lovelace-kindle-screensaver --amd64 --release-tag --docker-user marciogranzotto --docker-password ${{ secrets.DOCKER_PASSWORD }} | ||
build-armv7: | ||
name: Build and publish armv7 image | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Get version | ||
env: | ||
TAG_NAME: ${{ github.event.release.tag_name }} | ||
run: echo "VERSION=${TAG_NAME#v}" >> $GITHUB_ENV | ||
- name: Patch files | ||
uses: onlyutkarsh/[email protected] | ||
with: | ||
files: | | ||
lovelace-kindle-screensaver/config.json | ||
patch-syntax: | | ||
= /version => "${{ env.VERSION }}" | ||
- name: publish armv7 docker files | ||
if: github.event_name != 'pull_request' | ||
run: docker run --rm --privileged -v /var/run/docker.sock:/var/run/docker.sock -v ~/.docker:/root/.docker -v "$(pwd)":/data homeassistant/amd64-builder -t lovelace-kindle-screensaver --armv7 --release-tag --docker-user marciogranzotto --docker-password ${{ secrets.DOCKER_PASSWORD }} | ||
build-aarch64: | ||
name: Build and publish aarch64 image | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Get version | ||
env: | ||
TAG_NAME: ${{ github.event.release.tag_name }} | ||
run: echo "VERSION=${TAG_NAME#v}" >> $GITHUB_ENV | ||
- name: Patch files | ||
uses: onlyutkarsh/[email protected] | ||
with: | ||
files: | | ||
lovelace-kindle-screensaver/config.json | ||
patch-syntax: | | ||
= /version => "${{ env.VERSION }}" | ||
- name: publish aarch64 docker files | ||
if: github.event_name != 'pull_request' | ||
run: docker run --rm --privileged -v /var/run/docker.sock:/var/run/docker.sock -v ~/.docker:/root/.docker -v "$(pwd)":/data homeassistant/amd64-builder -t lovelace-kindle-screensaver --aarch64 --release-tag --docker-user marciogranzotto --docker-password ${{ secrets.DOCKER_PASSWORD }} | ||
update-main-repo: | ||
needs: [build-amd64, build-armv7, build-aarch64, build-i386, build-armhf] | ||
name: Update addons repository | ||
runs-on: ubuntu-latest | ||
container: | ||
image: hassioaddons/repository-updater:latest | ||
steps: | ||
- name: upload | ||
run: repository-updater --token ${{ secrets.GIT_TOKEN }} --repository marciogranzotto/addons-repository --addon lovelace-kindle-screensaver |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,15 +11,15 @@ RUN apk add --no-cache \ | |
--repository=https://mirror.fsmg.org.nz/alpine/v3.9/main | ||
|
||
RUN apk add --no-cache \ | ||
nss=3.60.1-r0 \ | ||
nss=3.63-r0 \ | ||
freetype=2.10.4-r1 \ | ||
freetype-dev=2.10.4-r1 \ | ||
harfbuzz=2.7.4-r1 \ | ||
ca-certificates=20191127-r5 \ | ||
ttf-freefont=20120503-r1 \ | ||
imagemagick=7.0.10.57-r0 \ | ||
nodejs=14.16.0-r0 \ | ||
npm=14.16.0-r0 | ||
nodejs=14.16.1-r0 \ | ||
npm=14.16.1-r0 | ||
|
||
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true \ | ||
PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser \ | ||
|
@@ -44,12 +44,12 @@ LABEL \ | |
io.hass.type="addon" \ | ||
io.hass.version=${BUILD_VERSION} \ | ||
maintainer="Marcio Granzotto <[email protected]>" \ | ||
org.opencontainers.image.title="Transmission" \ | ||
org.opencontainers.image.title="Lovelace Kindle Screensaver" \ | ||
org.opencontainers.image.description="Display a lovelace page as a screensaver on a jailbroken Kindle" \ | ||
org.opencontainers.image.vendor="Marcio Granzotto" \ | ||
org.opencontainers.image.authors="Marcio Granzotto <[email protected]>" \ | ||
org.opencontainers.image.source="https://github.com/sibbl/hass-lovelace-kindle-screensaver" \ | ||
org.opencontainers.image.documentation="https://github.com/sibbl/hass-lovelace-kindle-screensaver/blob/master/README.md" \ | ||
org.opencontainers.image.source="https://github.com/marciogranzotto/hass-lovelace-kindle-screensaver" \ | ||
org.opencontainers.image.documentation="https://github.com/marciogranzotto/hass-lovelace-kindle-screensaver/blob/master/README.md" \ | ||
org.opencontainers.image.created=${BUILD_DATE} \ | ||
org.opencontainers.image.revision=${BUILD_REF} \ | ||
org.opencontainers.image.version=${BUILD_VERSION} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters