Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ name: Docker

on:
schedule:
- cron: '31 22 * * 0'
- cron: "31 22 * * 0"
push:
branches: [main, dev]
# Publish semver tags as releases.
tags: ['v*.*.*']
tags: ["v*.*.*"]
pull_request:
branches: [main]
workflow_dispatch:
Expand All @@ -31,7 +31,7 @@ jobs:

strategy:
matrix:
dockerfile: ['multiarch', 'hwaccel', 'qsv']
dockerfile: ["multiarch"] #, "hwaccel", "qsv"]

steps:
- name: Checkout repository
Expand All @@ -41,7 +41,7 @@ jobs:
id: image_type
run: |
echo "suffix=${{ matrix.dockerfile == 'hwaccel' && '-hw' || matrix.dockerfile == 'qsv' && '-qsv' ||'' }}" >> $GITHUB_OUTPUT
echo "platforms=${{ matrix.dockerfile == 'multiarch' && 'linux/amd64,linux/arm64,linux/arm/v7' || 'linux/amd64' }}" >> $GITHUB_OUTPUT
echo "platforms=${{ matrix.dockerfile == 'multiarch' && 'linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v8' || 'linux/amd64' }}" >> $GITHUB_OUTPUT
echo "arch=${{ matrix.dockerfile == 'multiarch' && 'amd64,armhf,aarch64' || 'amd64' }}" >> $GITHUB_OUTPUT

- name: Set up QEMU
Expand All @@ -56,7 +56,7 @@ jobs:
platforms: ${{ steps.image_type.outputs.platforms }}

- name: Login to DockerHub
if: github.event_name != 'pull_request'
# if: github.event_name != 'pull_request'
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
Expand Down Expand Up @@ -102,7 +102,7 @@ jobs:
with:
builder: ${{ steps.buildx.outputs.name }}
context: ./app/
push: ${{ github.event_name != 'pull_request' }}
push: ${{ github.event_name == 'pull_request' }}
file: ./app/Dockerfile.${{ matrix.dockerfile }}
platforms: ${{ steps.image_type.outputs.platforms }}
build-args: BUILD=${{ steps.meta.outputs.VERSION }}
Expand All @@ -113,7 +113,7 @@ jobs:
io.hass.version=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.version'] }}
io.hass.type=addon
io.hass.arch=${{ steps.image_type.outputs.arch }}
tags: ${{ steps.meta.outputs.tags }}
tags: itsthestory/testing
cache-from: type=gha,scope=${{ matrix.dockerfile }}
cache-to: type=gha,mode=max,scope=${{ matrix.dockerfile }}
provenance: false
Expand All @@ -138,5 +138,5 @@ jobs:
uses: stefanzweifel/git-auto-commit-action@v4
with:
branch: main
commit_message: 'Bump Version to v${{ steps.version_bump.outputs.tag }}'
file_pattern: 'app/.env app/config.json'
commit_message: "Bump Version to v${{ steps.version_bump.outputs.tag }}"
file_pattern: "app/.env app/config.json"