Skip to content

Builder ignoring --test arg in BUILD_ARGS #207

@ChrisRomp

Description

@ChrisRomp

On push to main the CI is attempting to upload the image to a Docker repository, but my add-on builds locally so I don't store the built images. This used to work but one of the updates Dependabot helpfully added for the Builder action caused it to not work on my latest release (I haven't released in a while, so I'm not sure at which version this changed).

Expected result: Having --test in BUILD_ARGS would cause the Action to not try and upload the image.

Here's my CI YAML (truncated -- full config is here ):

name: Builder

env:
  BUILD_ARGS: "--test"
  MONITORED_FILES: "build.yaml config.yaml Dockerfile app"

...

      - name: Build ${{ matrix.addon }} add-on
        if: steps.check.outputs.build_arch == 'true'
        uses: home-assistant/[email protected]
        with:
          args: |
            ${{ env.BUILD_ARGS }} \
            --${{ matrix.arch }} \
            --target /data/${{ matrix.addon }} \
            --image "${{ steps.check.outputs.image }}" \
            --docker-hub "ghcr.io/${{ github.repository_owner }}" \
            --addon

The error at the end of the build:

[04:38:11] INFO: Finish build for ghcr.io/chrisromp/null:1.0.1
[04:38:11] INFO: Create image tag: latest
[04:38:11] INFO: Start upload of ghcr.io/chrisromp/null:1.0.1 (attempt #1/3)
[04:38:11] WARNING: Upload failed on attempt #1
[04:38:41] INFO: Start upload of ghcr.io/chrisromp/null:1.0.1 (attempt #2/3)
[04:38:41] WARNING: Upload failed on attempt #2
[04:39:11] INFO: Start upload of ghcr.io/chrisromp/null:1.0.1 (attempt #3/3)
[04:39:11] FATAL: Upload failed on attempt #3
Error: Process completed with exit code 1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions