diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 7c43f807..09915913 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -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: @@ -31,7 +31,7 @@ jobs: strategy: matrix: - dockerfile: ['multiarch', 'hwaccel', 'qsv'] + dockerfile: ["multiarch"] #, "hwaccel", "qsv"] steps: - name: Checkout repository @@ -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 @@ -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 }} @@ -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 }} @@ -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 @@ -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"