ci: fix rootfs container push

Currently the Push stage fails for rootfs containers:

  ERROR: failed to solve: process "/bin/sh -c if [ \"$RUN_SETUP\" -eq 1 ]; then /builder/setup.sh; fi" did not complete successfully: unable to find user root: invalid argument

This is happening as the commit 9999f3c7e58 ("Dockerfile: fix rootfs container generation")
changed the file argument on Build stage, but Push stage was omitted.

So lets fix it now by using working Dockerfile.rootfs.

References: https://github.com/openwrt/docker/actions/runs/14235351624/job/39893588545#step:11:288
Fixes: 79999f3c7e ("Dockerfile: fix rootfs container generation")
Fixes: 9b55784b18 ("BREAKING: use setup.sh instead of Dockerfile")
Link: https://github.com/openwrt/docker/pull/162
Signed-off-by: Petr Štetiar <ynezz@true.cz>
pull/162/head
Petr Štetiar 2025-04-03 05:10:29 +00:00
parent 79999f3c7e
commit b74469c8e2
No known key found for this signature in database
GPG Key ID: 58EE120F30CC02D3
1 changed files with 1 additions and 0 deletions

View File

@ -436,6 +436,7 @@ jobs:
no-cache: true
push: true
tags: ${{ steps.meta.outputs.tags }}
file: Dockerfile.rootfs
build-args: ${{ steps.build_args.outputs.args }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/${{ matrix.arch }}