-
-
Notifications
You must be signed in to change notification settings - Fork 70
Open
Description
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
Labels
No labels