mirror of
https://github.com/docker/build-push-action.git
synced 2026-11-25 20:43:05 +00:00
ci(e2e): run registry setup scripts as the runner user
On Ubuntu 26.04, sudo ignores -E and drops the registry settings. Harbor then listens on its default port while Docker tries to log in on the port configured by the workflow. Run the registry setup scripts as the runner user so they inherit the job environment. Use sudo within the Harbor and Nexus scripts for the operations that need it. Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
4
.github/workflows/.e2e-run.yml
vendored
4
.github/workflows/.e2e-run.yml
vendored
@@ -93,9 +93,7 @@ jobs:
|
||||
if: inputs.type == 'local'
|
||||
env:
|
||||
ID: ${{ inputs.id }}
|
||||
run: |
|
||||
sudo -E bash ./.github/e2e/${ID}/install.sh
|
||||
sudo chown $(id -u):$(id -g) -R ~/.docker
|
||||
run: bash "./.github/e2e/${ID}/install.sh"
|
||||
-
|
||||
name: Docker meta
|
||||
id: meta
|
||||
|
||||
Reference in New Issue
Block a user