mirror of
https://github.com/docker/build-push-action.git
synced 2026-02-14 19:54:07 +08:00
Merge pull request #1456 from crazy-max/auth-token-dyn-host
Some checks failed
ci / docker-driver (push) Failing after 6s
ci / error (push) Failing after 8s
ci / export-docker (push) Successful in 14s
ci / secret (push) Successful in 21s
ci / example (push) Failing after 31s
ci / error-buildx (push) Successful in 33s
ci / path-context (push) Failing after 37s
ci / secret-envs (push) Successful in 20s
ci / network (push) Successful in 19s
ci / ulimit (push) Successful in 21s
ci / cgroup-parent (push) Successful in 20s
ci / shm-size (push) Successful in 25s
ci / add-hosts (push) Successful in 22s
ci / attests-compat (moby/buildkit:buildx-stable-1, v0.9.1) (push) Failing after 12s
ci / no-cache-filters (push) Successful in 25s
ci / minimal (push) Successful in 1m25s
ci / provenance (mode=max, /tmp/buildx-build, binary) (push) Failing after 6s
ci / attests-compat (moby/buildkit:buildx-stable-1, latest) (push) Successful in 36s
ci / provenance (mode=max, type=image,name=localhost:5000/name/app:latest,push=true, image) (push) Failing after 6s
ci / sbom (/tmp/buildx-build, binary) (push) Failing after 6s
ci / attests-compat (moby/buildkit:latest, edge) (push) Successful in 43s
ci / sbom (type=image,name=localhost:5000/name/app:latest,push=true, image) (push) Failing after 7s
ci / multi (multi) (push) Failing after 5s
ci / git-context (push) Failing after 1m47s
ci / attests-compat (moby/buildkit:v0.10.6, latest) (push) Successful in 40s
ci / provenance (, /tmp/buildx-build, binary) (push) Failing after 38s
ci / digest (docker, false, false) (push) Failing after 6s
ci / git-context-secret (push) Failing after 1m51s
ci / digest (docker, false, true) (push) Failing after 6s
ci / provenance (, type=image,name=localhost:5000/name/app:latest,push=true, image) (push) Failing after 36s
ci / digest (docker-container, false, true) (push) Failing after 6s
ci / registry-cache (push) Failing after 6s
ci / github-cache (push) Failing after 6s
ci / local-cache (push) Failing after 6s
ci / digest (docker, true, false) (push) Successful in 15s
ci / named-context-container (push) Failing after 6s
ci / multi (multi-sudo) (push) Failing after 28s
ci / digest (docker-container, false, false) (push) Successful in 22s
ci / digest (docker-container, true, false) (push) Successful in 21s
ci / docker-config-malformed (push) Successful in 8s
ci / proxy-docker-config (push) Failing after 6s
ci / standalone (push) Successful in 18s
ci / named-context-pin (push) Successful in 18s
ci / named-context-docker (push) Successful in 17s
ci / proxy-buildkitd (push) Failing after 8s
ci / summary-not-supported (push) Failing after 15s
ci / annotations (push) Failing after 29s
ci / multi-output (push) Failing after 32s
ci / load-and-push (push) Failing after 33s
ci / checks (edge) (push) Successful in 19s
ci / checks (latest) (push) Successful in 18s
ci / checks (v0.14.1) (push) Successful in 18s
ci / annotations-disabled (push) Successful in 25s
ci / summary-disable (push) Successful in 2m16s
ci / call-check (push) Successful in 31s
ci / record-upload-disable (push) Successful in 2m53s
ci / record-retention-days (2) (push) Successful in 2m46s
ci / summary-disable-deprecated (push) Successful in 3m14s
ci / record-retention-days (0) (push) Successful in 3m16s
ci / export-legacy (true) (push) Successful in 2m56s
ci / export-legacy (false) (push) Successful in 3m9s
ci / no-default-attestations (push) Successful in 2m4s
e2e / build (Docker Hub, DOCKERHUB_TOKEN, , ghactionstest/ghactionstest, remote, DOCKERHUB_USERNAME) (push) Failing after 4m33s
e2e / build (AWS ECR, AWS_SECRET_ACCESS_KEY, 175142243308.dkr.ecr.us-east-2.amazonaws.com, 175142243308.dkr.ecr.us-east-2.amazonaws.com/sandbox/test-docker-action, remote, AWS_ACCESS_KEY_ID) (push) Failing after 5m1s
e2e / build (GitHub, GHCR_PAT, ghcr.io, ghcr.io/docker-ghactiontest/test, remote, GHCR_USERNAME) (push) Failing after 4m46s
e2e / build (Azure Container Registry, AZURE_CLIENT_SECRET, officialgithubactions.azurecr.io, officialgithubactions.azurecr.io/test-docker-action, remote, AZURE_CLIENT_ID) (push) Failing after 5m13s
e2e / build (Google Artifact Registry, GAR_JSON_KEY, us-east4-docker.pkg.dev, us-east4-docker.pkg.dev/sandbox-298914/docker-official-github-actions/test-docker-action, remote, GAR_USERNAME) (push) Failing after 4m7s
e2e / build (GitLab, GITLAB_TOKEN, registry.gitlab.com, registry.gitlab.com/test1716/test, remote, GITLAB_USERNAME) (push) Failing after 4m50s
validate / prepare (push) Successful in 8s
e2e / build (Artifactory, ARTIFACTORY_TOKEN, infradock.jfrog.io, infradock.jfrog.io/test-ghaction/build-push-action, remote, ARTIFACTORY_USERNAME) (push) Failing after 5m32s
e2e / build (AWS ECR Public, AWS_SECRET_ACCESS_KEY, public.ecr.aws, public.ecr.aws/q3b5f1u4/test-docker-action, remote, AWS_ACCESS_KEY_ID) (push) Failing after 6m11s
e2e / build (harbor, Harbor, local) (push) Failing after 29s
e2e / build (nexus, Nexus, local) (push) Failing after 33s
test / test (push) Successful in 1m7s
validate / validate (push) Successful in 49s
e2e / build (distribution, Distribution, local) (push) Failing after 14m36s
e2e / build (Quay, QUAY_TOKEN, quay.io, quay.io/docker_build_team/ghactiontest, remote, QUAY_USERNAME) (push) Failing after 14m38s
Some checks failed
ci / docker-driver (push) Failing after 6s
ci / error (push) Failing after 8s
ci / export-docker (push) Successful in 14s
ci / secret (push) Successful in 21s
ci / example (push) Failing after 31s
ci / error-buildx (push) Successful in 33s
ci / path-context (push) Failing after 37s
ci / secret-envs (push) Successful in 20s
ci / network (push) Successful in 19s
ci / ulimit (push) Successful in 21s
ci / cgroup-parent (push) Successful in 20s
ci / shm-size (push) Successful in 25s
ci / add-hosts (push) Successful in 22s
ci / attests-compat (moby/buildkit:buildx-stable-1, v0.9.1) (push) Failing after 12s
ci / no-cache-filters (push) Successful in 25s
ci / minimal (push) Successful in 1m25s
ci / provenance (mode=max, /tmp/buildx-build, binary) (push) Failing after 6s
ci / attests-compat (moby/buildkit:buildx-stable-1, latest) (push) Successful in 36s
ci / provenance (mode=max, type=image,name=localhost:5000/name/app:latest,push=true, image) (push) Failing after 6s
ci / sbom (/tmp/buildx-build, binary) (push) Failing after 6s
ci / attests-compat (moby/buildkit:latest, edge) (push) Successful in 43s
ci / sbom (type=image,name=localhost:5000/name/app:latest,push=true, image) (push) Failing after 7s
ci / multi (multi) (push) Failing after 5s
ci / git-context (push) Failing after 1m47s
ci / attests-compat (moby/buildkit:v0.10.6, latest) (push) Successful in 40s
ci / provenance (, /tmp/buildx-build, binary) (push) Failing after 38s
ci / digest (docker, false, false) (push) Failing after 6s
ci / git-context-secret (push) Failing after 1m51s
ci / digest (docker, false, true) (push) Failing after 6s
ci / provenance (, type=image,name=localhost:5000/name/app:latest,push=true, image) (push) Failing after 36s
ci / digest (docker-container, false, true) (push) Failing after 6s
ci / registry-cache (push) Failing after 6s
ci / github-cache (push) Failing after 6s
ci / local-cache (push) Failing after 6s
ci / digest (docker, true, false) (push) Successful in 15s
ci / named-context-container (push) Failing after 6s
ci / multi (multi-sudo) (push) Failing after 28s
ci / digest (docker-container, false, false) (push) Successful in 22s
ci / digest (docker-container, true, false) (push) Successful in 21s
ci / docker-config-malformed (push) Successful in 8s
ci / proxy-docker-config (push) Failing after 6s
ci / standalone (push) Successful in 18s
ci / named-context-pin (push) Successful in 18s
ci / named-context-docker (push) Successful in 17s
ci / proxy-buildkitd (push) Failing after 8s
ci / summary-not-supported (push) Failing after 15s
ci / annotations (push) Failing after 29s
ci / multi-output (push) Failing after 32s
ci / load-and-push (push) Failing after 33s
ci / checks (edge) (push) Successful in 19s
ci / checks (latest) (push) Successful in 18s
ci / checks (v0.14.1) (push) Successful in 18s
ci / annotations-disabled (push) Successful in 25s
ci / summary-disable (push) Successful in 2m16s
ci / call-check (push) Successful in 31s
ci / record-upload-disable (push) Successful in 2m53s
ci / record-retention-days (2) (push) Successful in 2m46s
ci / summary-disable-deprecated (push) Successful in 3m14s
ci / record-retention-days (0) (push) Successful in 3m16s
ci / export-legacy (true) (push) Successful in 2m56s
ci / export-legacy (false) (push) Successful in 3m9s
ci / no-default-attestations (push) Successful in 2m4s
e2e / build (Docker Hub, DOCKERHUB_TOKEN, , ghactionstest/ghactionstest, remote, DOCKERHUB_USERNAME) (push) Failing after 4m33s
e2e / build (AWS ECR, AWS_SECRET_ACCESS_KEY, 175142243308.dkr.ecr.us-east-2.amazonaws.com, 175142243308.dkr.ecr.us-east-2.amazonaws.com/sandbox/test-docker-action, remote, AWS_ACCESS_KEY_ID) (push) Failing after 5m1s
e2e / build (GitHub, GHCR_PAT, ghcr.io, ghcr.io/docker-ghactiontest/test, remote, GHCR_USERNAME) (push) Failing after 4m46s
e2e / build (Azure Container Registry, AZURE_CLIENT_SECRET, officialgithubactions.azurecr.io, officialgithubactions.azurecr.io/test-docker-action, remote, AZURE_CLIENT_ID) (push) Failing after 5m13s
e2e / build (Google Artifact Registry, GAR_JSON_KEY, us-east4-docker.pkg.dev, us-east4-docker.pkg.dev/sandbox-298914/docker-official-github-actions/test-docker-action, remote, GAR_USERNAME) (push) Failing after 4m7s
e2e / build (GitLab, GITLAB_TOKEN, registry.gitlab.com, registry.gitlab.com/test1716/test, remote, GITLAB_USERNAME) (push) Failing after 4m50s
validate / prepare (push) Successful in 8s
e2e / build (Artifactory, ARTIFACTORY_TOKEN, infradock.jfrog.io, infradock.jfrog.io/test-ghaction/build-push-action, remote, ARTIFACTORY_USERNAME) (push) Failing after 5m32s
e2e / build (AWS ECR Public, AWS_SECRET_ACCESS_KEY, public.ecr.aws, public.ecr.aws/q3b5f1u4/test-docker-action, remote, AWS_ACCESS_KEY_ID) (push) Failing after 6m11s
e2e / build (harbor, Harbor, local) (push) Failing after 29s
e2e / build (nexus, Nexus, local) (push) Failing after 33s
test / test (push) Successful in 1m7s
validate / validate (push) Successful in 49s
e2e / build (distribution, Distribution, local) (push) Failing after 14m36s
e2e / build (Quay, QUAY_TOKEN, quay.io, quay.io/docker_build_team/ghactiontest, remote, QUAY_USERNAME) (push) Failing after 14m38s
derive GIT_AUTH_TOKEN host from GitHub server URL
This commit is contained in:
2
dist/index.js
generated
vendored
2
dist/index.js
generated
vendored
File diff suppressed because one or more lines are too long
2
dist/index.js.map
generated
vendored
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
@@ -183,7 +183,7 @@ async function getBuildArgs(inputs: Inputs, context: string, toolkit: Toolkit):
|
||||
}
|
||||
});
|
||||
if (inputs['github-token'] && !Build.hasGitAuthTokenSecret(inputs.secrets) && context.startsWith(Context.gitContext())) {
|
||||
args.push('--secret', Build.resolveSecretString(`GIT_AUTH_TOKEN.github.com=${inputs['github-token']}`));
|
||||
args.push('--secret', Build.resolveSecretString(`GIT_AUTH_TOKEN.${new URL(GitHub.serverURL).hostname.trimEnd()}=${inputs['github-token']}`));
|
||||
}
|
||||
if (inputs['shm-size']) {
|
||||
args.push('--shm-size', inputs['shm-size']);
|
||||
|
||||
Reference in New Issue
Block a user