mirror of
https://github.com/docker/build-push-action.git
synced 2026-06-06 04:42:38 +08:00
Merge pull request #1554 from crazy-max/e2e-ghcr
Some checks failed
codeql / analyze (push) Failing after 2m44s
zizmor / zizmor (push) Failing after 2s
validate / prepare (push) Successful in 8m0s
test / test (push) Successful in 9m13s
validate / validate (push) Successful in 1m16s
e2e / build (artifactory, Artifactory, infradock.jfrog.io, infradock.jfrog.io/test-ghaction/build-push-action, remote) (push) Failing after 1m53s
e2e / build (gar, Google Artifact Registry, us-east4-docker.pkg.dev, us-east4-docker.pkg.dev/sandbox-298914/docker-official-github-actions/test-docker-action, remote) (push) Failing after 1m54s
e2e / build (ghcr, GitHub, ghcr.io, ghcr.io/docker/build-push-action-test, remote) (push) Failing after 2m5s
e2e / build (aws, AWS ECR Public, public.ecr.aws, public.ecr.aws/q3b5f1u4/test-docker-action, remote) (push) Failing after 2m7s
e2e / build (gitlab, GitLab, registry.gitlab.com, registry.gitlab.com/test1716/test, remote) (push) Failing after 2m35s
e2e / build (none, distribution, Distribution, local) (push) Failing after 45s
e2e / build (aws, AWS ECR, 175142243308.dkr.ecr.us-east-2.amazonaws.com, 175142243308.dkr.ecr.us-east-2.amazonaws.com/sandbox/test-docker-action, remote) (push) Failing after 2m40s
e2e / build (none, harbor, Harbor, local) (push) Failing after 44s
e2e / build (none, nexus, Nexus, local) (push) Failing after 42s
ci / git-context-secret (push) Failing after 9s
ci / example (push) Failing after 9s
e2e / build (acr, Azure Container Registry, officialgithubactions.azurecr.io, officialgithubactions.azurecr.io/test-docker-action, remote) (push) Failing after 3m14s
e2e / build (dockerhub, Docker Hub, , ghactionstest/ghactionstest, remote) (push) Failing after 3m12s
ci / error (push) Failing after 17s
e2e / build (quay, Quay, quay.io, quay.io/docker_build_team/ghactiontest, remote) (push) Failing after 1m19s
ci / path-context (push) Failing after 58s
ci / error-buildx (push) Successful in 1m6s
ci / docker-driver (push) Successful in 36s
ci / export-docker (push) Successful in 29s
ci / secret (push) Successful in 39s
ci / secret-files (push) Successful in 44s
ci / secret-envs (push) Successful in 42s
ci / minimal (push) Failing after 3m10s
ci / git-context (push) Failing after 3m9s
ci / git-context-query (push) Failing after 3m7s
ci / network (push) Successful in 52s
ci / shm-size (push) Successful in 43s
ci / ulimit (push) Successful in 47s
ci / cgroup-parent (push) Successful in 43s
ci / add-hosts (push) Successful in 40s
ci / no-cache-filters (push) Successful in 1m44s
ci / attests-compat (moby/buildkit:buildx-stable-1, v0.9.1) (push) Failing after 27s
ci / provenance (mode=max, type=image,name=localhost:5000/name/app:latest,push=true, image) (push) Failing after 10s
ci / sbom (/tmp/buildx-build, binary) (push) Failing after 9s
ci / sbom (type=image,name=localhost:5000/name/app:latest,push=true, image) (push) Failing after 9s
ci / multi (multi) (push) Failing after 9s
ci / multi (multi-sudo) (push) Failing after 10s
ci / digest (docker, false, false) (push) Failing after 8s
ci / digest (docker, false, true) (push) Failing after 10s
ci / digest (docker, true, false) (push) Failing after 9s
ci / digest (docker-container, false, false) (push) Failing after 11s
ci / digest (docker-container, false, true) (push) Failing after 8s
ci / digest (docker-container, true, false) (push) Failing after 10s
ci / registry-cache (push) Failing after 8s
ci / attests-compat (moby/buildkit:buildx-stable-1, latest) (push) Successful in 1m56s
ci / provenance (, type=image,name=localhost:5000/name/app:latest,push=true, image) (push) Failing after 1m42s
ci / attests-compat (moby/buildkit:v0.10.6, latest) (push) Successful in 1m51s
ci / provenance (mode=max, /tmp/buildx-build, binary) (push) Failing after 1m47s
ci / github-cache (push) Failing after 10s
ci / attests-compat (moby/buildkit:latest, edge) (push) Successful in 2m6s
ci / provenance (, /tmp/buildx-build, binary) (push) Failing after 1m56s
ci / proxy-docker-config (push) Failing after 15s
ci / proxy-buildkitd (push) Failing after 12s
ci / docker-config-malformed (push) Successful in 26s
ci / named-context-pin (push) Successful in 34s
ci / standalone (push) Successful in 43s
ci / load-and-push (push) Failing after 9s
ci / named-context-docker (push) Successful in 42s
ci / named-context-container (push) Successful in 45s
ci / summary-not-supported (push) Failing after 23s
ci / local-cache (push) Failing after 1m13s
ci / annotations (push) Failing after 50s
ci / multi-output (push) Failing after 53s
ci / checks (edge) (push) Successful in 33s
ci / checks (latest) (push) Successful in 36s
ci / checks (v0.14.1) (push) Successful in 42s
ci / annotations-disabled (push) Successful in 40s
ci / call-check (push) Successful in 34s
ci / summary-disable (push) Failing after 2m31s
ci / record-upload-disable (push) Failing after 2m24s
ci / record-retention-days (0) (push) Failing after 2m23s
ci / record-retention-days (2) (push) Failing after 2m17s
ci / no-default-attestations (push) Failing after 1m19s
Some checks failed
codeql / analyze (push) Failing after 2m44s
zizmor / zizmor (push) Failing after 2s
validate / prepare (push) Successful in 8m0s
test / test (push) Successful in 9m13s
validate / validate (push) Successful in 1m16s
e2e / build (artifactory, Artifactory, infradock.jfrog.io, infradock.jfrog.io/test-ghaction/build-push-action, remote) (push) Failing after 1m53s
e2e / build (gar, Google Artifact Registry, us-east4-docker.pkg.dev, us-east4-docker.pkg.dev/sandbox-298914/docker-official-github-actions/test-docker-action, remote) (push) Failing after 1m54s
e2e / build (ghcr, GitHub, ghcr.io, ghcr.io/docker/build-push-action-test, remote) (push) Failing after 2m5s
e2e / build (aws, AWS ECR Public, public.ecr.aws, public.ecr.aws/q3b5f1u4/test-docker-action, remote) (push) Failing after 2m7s
e2e / build (gitlab, GitLab, registry.gitlab.com, registry.gitlab.com/test1716/test, remote) (push) Failing after 2m35s
e2e / build (none, distribution, Distribution, local) (push) Failing after 45s
e2e / build (aws, AWS ECR, 175142243308.dkr.ecr.us-east-2.amazonaws.com, 175142243308.dkr.ecr.us-east-2.amazonaws.com/sandbox/test-docker-action, remote) (push) Failing after 2m40s
e2e / build (none, harbor, Harbor, local) (push) Failing after 44s
e2e / build (none, nexus, Nexus, local) (push) Failing after 42s
ci / git-context-secret (push) Failing after 9s
ci / example (push) Failing after 9s
e2e / build (acr, Azure Container Registry, officialgithubactions.azurecr.io, officialgithubactions.azurecr.io/test-docker-action, remote) (push) Failing after 3m14s
e2e / build (dockerhub, Docker Hub, , ghactionstest/ghactionstest, remote) (push) Failing after 3m12s
ci / error (push) Failing after 17s
e2e / build (quay, Quay, quay.io, quay.io/docker_build_team/ghactiontest, remote) (push) Failing after 1m19s
ci / path-context (push) Failing after 58s
ci / error-buildx (push) Successful in 1m6s
ci / docker-driver (push) Successful in 36s
ci / export-docker (push) Successful in 29s
ci / secret (push) Successful in 39s
ci / secret-files (push) Successful in 44s
ci / secret-envs (push) Successful in 42s
ci / minimal (push) Failing after 3m10s
ci / git-context (push) Failing after 3m9s
ci / git-context-query (push) Failing after 3m7s
ci / network (push) Successful in 52s
ci / shm-size (push) Successful in 43s
ci / ulimit (push) Successful in 47s
ci / cgroup-parent (push) Successful in 43s
ci / add-hosts (push) Successful in 40s
ci / no-cache-filters (push) Successful in 1m44s
ci / attests-compat (moby/buildkit:buildx-stable-1, v0.9.1) (push) Failing after 27s
ci / provenance (mode=max, type=image,name=localhost:5000/name/app:latest,push=true, image) (push) Failing after 10s
ci / sbom (/tmp/buildx-build, binary) (push) Failing after 9s
ci / sbom (type=image,name=localhost:5000/name/app:latest,push=true, image) (push) Failing after 9s
ci / multi (multi) (push) Failing after 9s
ci / multi (multi-sudo) (push) Failing after 10s
ci / digest (docker, false, false) (push) Failing after 8s
ci / digest (docker, false, true) (push) Failing after 10s
ci / digest (docker, true, false) (push) Failing after 9s
ci / digest (docker-container, false, false) (push) Failing after 11s
ci / digest (docker-container, false, true) (push) Failing after 8s
ci / digest (docker-container, true, false) (push) Failing after 10s
ci / registry-cache (push) Failing after 8s
ci / attests-compat (moby/buildkit:buildx-stable-1, latest) (push) Successful in 1m56s
ci / provenance (, type=image,name=localhost:5000/name/app:latest,push=true, image) (push) Failing after 1m42s
ci / attests-compat (moby/buildkit:v0.10.6, latest) (push) Successful in 1m51s
ci / provenance (mode=max, /tmp/buildx-build, binary) (push) Failing after 1m47s
ci / github-cache (push) Failing after 10s
ci / attests-compat (moby/buildkit:latest, edge) (push) Successful in 2m6s
ci / provenance (, /tmp/buildx-build, binary) (push) Failing after 1m56s
ci / proxy-docker-config (push) Failing after 15s
ci / proxy-buildkitd (push) Failing after 12s
ci / docker-config-malformed (push) Successful in 26s
ci / named-context-pin (push) Successful in 34s
ci / standalone (push) Successful in 43s
ci / load-and-push (push) Failing after 9s
ci / named-context-docker (push) Successful in 42s
ci / named-context-container (push) Successful in 45s
ci / summary-not-supported (push) Failing after 23s
ci / local-cache (push) Failing after 1m13s
ci / annotations (push) Failing after 50s
ci / multi-output (push) Failing after 53s
ci / checks (edge) (push) Successful in 33s
ci / checks (latest) (push) Successful in 36s
ci / checks (v0.14.1) (push) Successful in 42s
ci / annotations-disabled (push) Successful in 40s
ci / call-check (push) Successful in 34s
ci / summary-disable (push) Failing after 2m31s
ci / record-upload-disable (push) Failing after 2m24s
ci / record-retention-days (0) (push) Failing after 2m23s
ci / record-retention-days (2) (push) Failing after 2m17s
ci / no-default-attestations (push) Failing after 1m19s
ci(e2e): use GITHUB_TOKEN for GHCR e2e
This commit is contained in:
7
.github/workflows/.e2e-run.yml
vendored
7
.github/workflows/.e2e-run.yml
vendored
@@ -1,9 +1,6 @@
|
|||||||
# reusable workflow
|
# reusable workflow
|
||||||
name: .e2e-run
|
name: .e2e-run
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
@@ -117,8 +114,8 @@ jobs:
|
|||||||
uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4.2.0
|
uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4.2.0
|
||||||
with:
|
with:
|
||||||
registry: ${{ env.REGISTRY_FQDN || inputs.registry }}
|
registry: ${{ env.REGISTRY_FQDN || inputs.registry }}
|
||||||
username: ${{ env.REGISTRY_USER || secrets.registry_username }}
|
username: ${{ env.REGISTRY_USER || secrets.registry_username || (inputs.registry == 'ghcr.io' && github.actor) || '' }}
|
||||||
password: ${{ env.REGISTRY_PASSWORD || secrets.registry_password }}
|
password: ${{ env.REGISTRY_PASSWORD || secrets.registry_password || (inputs.registry == 'ghcr.io' && secrets.GITHUB_TOKEN) || '' }}
|
||||||
scope: ${{ inputs.type == 'remote' && inputs.registry == '' && '@push' || '' }}
|
scope: ${{ inputs.type == 'remote' && inputs.registry == '' && '@push' || '' }}
|
||||||
-
|
-
|
||||||
name: Build and push
|
name: Build and push
|
||||||
|
|||||||
10
.github/workflows/e2e.yml
vendored
10
.github/workflows/e2e.yml
vendored
@@ -20,6 +20,9 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
uses: ./.github/workflows/.e2e-run.yml
|
uses: ./.github/workflows/.e2e-run.yml
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
packages: write # to push image to GHCR
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
@@ -38,7 +41,7 @@ jobs:
|
|||||||
-
|
-
|
||||||
name: GitHub
|
name: GitHub
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
slug: ghcr.io/docker-ghactiontest/test
|
slug: ghcr.io/docker/build-push-action-test
|
||||||
auth: ghcr
|
auth: ghcr
|
||||||
type: remote
|
type: remote
|
||||||
-
|
-
|
||||||
@@ -100,11 +103,11 @@ jobs:
|
|||||||
registry: ${{ matrix.registry }}
|
registry: ${{ matrix.registry }}
|
||||||
slug: ${{ matrix.slug }}
|
slug: ${{ matrix.slug }}
|
||||||
secrets:
|
secrets:
|
||||||
# Pass only the two secrets needed by each matrix entry.
|
# Pass only the registry-specific secrets needed by each matrix entry.
|
||||||
|
# GHCR uses the called workflow's GITHUB_TOKEN fallback.
|
||||||
registry_username: >-
|
registry_username: >-
|
||||||
${{
|
${{
|
||||||
matrix.auth == 'dockerhub' && secrets.DOCKERHUB_USERNAME ||
|
matrix.auth == 'dockerhub' && secrets.DOCKERHUB_USERNAME ||
|
||||||
matrix.auth == 'ghcr' && secrets.GHCR_USERNAME ||
|
|
||||||
matrix.auth == 'gitlab' && secrets.GITLAB_USERNAME ||
|
matrix.auth == 'gitlab' && secrets.GITLAB_USERNAME ||
|
||||||
matrix.auth == 'aws' && secrets.AWS_ACCESS_KEY_ID ||
|
matrix.auth == 'aws' && secrets.AWS_ACCESS_KEY_ID ||
|
||||||
matrix.auth == 'gar' && secrets.GAR_USERNAME ||
|
matrix.auth == 'gar' && secrets.GAR_USERNAME ||
|
||||||
@@ -116,7 +119,6 @@ jobs:
|
|||||||
registry_password: >-
|
registry_password: >-
|
||||||
${{
|
${{
|
||||||
matrix.auth == 'dockerhub' && secrets.DOCKERHUB_TOKEN ||
|
matrix.auth == 'dockerhub' && secrets.DOCKERHUB_TOKEN ||
|
||||||
matrix.auth == 'ghcr' && secrets.GHCR_PAT ||
|
|
||||||
matrix.auth == 'gitlab' && secrets.GITLAB_TOKEN ||
|
matrix.auth == 'gitlab' && secrets.GITLAB_TOKEN ||
|
||||||
matrix.auth == 'aws' && secrets.AWS_SECRET_ACCESS_KEY ||
|
matrix.auth == 'aws' && secrets.AWS_SECRET_ACCESS_KEY ||
|
||||||
matrix.auth == 'gar' && secrets.GAR_JSON_KEY ||
|
matrix.auth == 'gar' && secrets.GAR_JSON_KEY ||
|
||||||
|
|||||||
6
.github/zizmor.yml
vendored
Normal file
6
.github/zizmor.yml
vendored
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
rules:
|
||||||
|
# rule does not apply to reusable worfklows where permissions are defined by
|
||||||
|
# the caller workflow and not the reusable workflow itself
|
||||||
|
excessive-permissions:
|
||||||
|
ignore:
|
||||||
|
- .e2e-run.yml
|
||||||
Reference in New Issue
Block a user