mirror of
https://github.com/docker/build-push-action.git
synced 2026-08-13 00:27:47 +00:00
ci(e2e): use Docker Hub OIDC for test image
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
2
.github/workflows/.e2e-run.yml
vendored
2
.github/workflows/.e2e-run.yml
vendored
@@ -130,6 +130,8 @@ jobs:
|
||||
name: Login to Registry
|
||||
if: github.event_name != 'pull_request' && (inputs.type == 'remote' || inputs.provider == 'aws' || env.REGISTRY_USER != '')
|
||||
uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0
|
||||
env:
|
||||
DOCKERHUB_OIDC_CONNECTIONID: ${{ inputs.provider == 'dockerhub' && vars.DOCKERHUB_OIDC_CONNECTIONID || '' }}
|
||||
with:
|
||||
registry: ${{ env.REGISTRY_FQDN || inputs.registry }}
|
||||
username: ${{ env.REGISTRY_USER || secrets.registry_username || (inputs.registry == 'ghcr.io' && github.actor) || '' }}
|
||||
|
||||
Reference in New Issue
Block a user