Files
build-push-action/.github/workflows/.e2e-run.yml
CrazyMax a00e37fb35
Some checks failed
ci / example (push) Failing after 6s
ci / error (push) Failing after 8s
ci / docker-driver (push) Failing after 7s
ci / export-docker (push) Successful in 26s
ci / error-buildx (push) Successful in 42s
ci / secret (push) Successful in 28s
ci / path-context (push) Failing after 37s
ci / secret-files (push) Successful in 25s
ci / secret-envs (push) Successful in 26s
ci / network (push) Successful in 26s
ci / shm-size (push) Successful in 30s
ci / ulimit (push) Successful in 27s
ci / cgroup-parent (push) Successful in 26s
ci / add-hosts (push) Successful in 28s
ci / no-cache-filters (push) Successful in 28s
ci / attests-compat (moby/buildkit:buildx-stable-1, v0.9.1) (push) Failing after 17s
ci / attests-compat (moby/buildkit:buildx-stable-1, latest) (push) Successful in 36s
ci / provenance (, type=image,name=localhost:5000/name/app:latest,push=true, image) (push) Failing after 8s
ci / provenance (mode=max, /tmp/buildx-build, binary) (push) Failing after 8s
ci / attests-compat (moby/buildkit:latest, edge) (push) Successful in 44s
ci / attests-compat (moby/buildkit:v0.10.6, latest) (push) Successful in 44s
ci / provenance (, /tmp/buildx-build, binary) (push) Failing after 38s
ci / sbom (/tmp/buildx-build, binary) (push) Failing after 7s
ci / multi (multi-sudo) (push) Failing after 7s
ci / provenance (mode=max, type=image,name=localhost:5000/name/app:latest,push=true, image) (push) Failing after 7s
ci / sbom (type=image,name=localhost:5000/name/app:latest,push=true, image) (push) Failing after 7s
ci / digest (docker, false, true) (push) Failing after 7s
ci / digest (docker, false, false) (push) Failing after 8s
ci / digest (docker-container, false, false) (push) Failing after 7s
ci / digest (docker-container, false, true) (push) Failing after 6s
ci / digest (docker, true, false) (push) Failing after 7s
ci / registry-cache (push) Failing after 8s
ci / multi (multi) (push) Failing after 32s
ci / digest (docker-container, true, false) (push) Failing after 6s
ci / github-cache (push) Failing after 7s
ci / local-cache (push) Failing after 7s
ci / named-context-container (push) Failing after 6s
ci / standalone (push) Successful in 24s
ci / named-context-pin (push) Successful in 25s
ci / named-context-docker (push) Successful in 24s
ci / docker-config-malformed (push) Successful in 17s
ci / proxy-docker-config (push) Failing after 7s
ci / proxy-buildkitd (push) Failing after 8s
ci / multi-output (push) Failing after 6s
ci / annotations (push) Failing after 6s
ci / load-and-push (push) Failing after 7s
ci / summary-not-supported (push) Failing after 18s
ci / minimal (push) Successful in 4m40s
ci / git-context (push) Failing after 4m44s
ci / git-context-secret (push) Failing after 4m46s
ci / git-context-query (push) Failing after 4m50s
ci / checks (edge) (push) Successful in 21s
ci / checks (latest) (push) Successful in 24s
ci / checks (v0.14.1) (push) Successful in 22s
ci / call-check (push) Successful in 21s
ci / annotations-disabled (push) Successful in 23s
ci / record-retention-days (0) (push) Failing after 2m7s
ci / record-upload-disable (push) Successful in 5m55s
ci / summary-disable (push) Successful in 6m2s
ci / record-retention-days (2) (push) Successful in 6m28s
ci / no-default-attestations (push) Successful in 5m35s
codeql / analyze (push) Failing after 8m27s
e2e / build (artifactory, Artifactory, infradock.jfrog.io, infradock.jfrog.io/test-ghaction/build-push-action, remote) (push) Failing after 11m0s
e2e / build (dockerhub, Docker Hub, , ghactionstest/ghactionstest, remote) (push) Failing after 6m23s
e2e / build (acr, Azure Container Registry, officialgithubactions.azurecr.io, officialgithubactions.azurecr.io/test-docker-action, remote) (push) Failing after 11m18s
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 5m52s
e2e / build (none, distribution, Distribution, local) (push) Failing after 24s
e2e / build (aws, AWS ECR Public, public.ecr.aws, public.ecr.aws/q3b5f1u4/test-docker-action, remote) (push) Failing after 10m41s
e2e / build (ghcr, GitHub, ghcr.io, ghcr.io/docker-ghactiontest/test, remote) (push) Failing after 6m9s
zizmor / zizmor (push) Failing after 1s
e2e / build (none, harbor, Harbor, local) (push) Failing after 28s
e2e / build (none, nexus, Nexus, local) (push) Failing after 28s
e2e / build (quay, Quay, quay.io, quay.io/docker_build_team/ghactiontest, remote) (push) Failing after 36s
validate / prepare (push) Successful in 41s
validate / validate (push) Successful in 18s
test / test (push) Successful in 1m7s
e2e / build (gitlab, GitLab, registry.gitlab.com, registry.gitlab.com/test1716/test, remote) (push) Failing after 5m32s
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 9m21s
Merge pull request #1540 from docker/dependabot/github_actions/docker/metadata-action-6.1.0
chore(deps): Bump docker/metadata-action from 6.0.0 to 6.1.0
2026-05-26 17:22:51 +02:00

147 lines
4.9 KiB
YAML

# reusable workflow
name: .e2e-run
permissions:
contents: read
on:
workflow_call:
inputs:
id:
required: false
type: string
type:
required: true
type: string
name:
required: true
type: string
registry:
required: false
type: string
slug:
required: false
type: string
secrets:
registry_username:
required: false
registry_password:
required: false
env:
HARBOR_VERSION: v2.13.2
NEXUS_VERSION: 3.47.1
DISTRIBUTION_VERSION: 3.0.0
jobs:
run:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
-
buildx_version: edge
buildkit_image: moby/buildkit:latest
-
buildx_version: latest
buildkit_image: moby/buildkit:buildx-stable-1
-
buildx_version: https://github.com/docker/buildx.git#master
buildkit_image: moby/buildkit:master
steps:
-
name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
-
name: Set up env
if: inputs.type == 'local'
env:
ID: ${{ inputs.id }}
run: |
cat ./.github/e2e/${ID}/env >> $GITHUB_ENV
-
name: Set up BuildKit config
env:
TYPE: ${{ inputs.type }}
run: |
touch /tmp/buildkitd.toml
if [ "${TYPE}" = "local" ]; then
echo -e "[registry.\"${{ env.REGISTRY_FQDN }}\"]\nhttp = true\ninsecure = true" > /tmp/buildkitd.toml
fi
-
name: Set up Docker daemon
if: inputs.type == 'local'
run: |
if [ ! -e /etc/docker/daemon.json ]; then
echo '{}' | sudo tee /etc/docker/daemon.json >/dev/null
fi
DOCKERD_CONFIG=$(jq '.+{"insecure-registries":["http://${{ env.REGISTRY_FQDN }}"]}' /etc/docker/daemon.json)
sudo tee /etc/docker/daemon.json <<<"$DOCKERD_CONFIG" >/dev/null
cat /etc/docker/daemon.json
sudo service docker restart
-
name: Install ${{ inputs.name }}
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
-
name: Docker meta
id: meta
uses: docker/metadata-action@80c7e94dd9b9319bd5eb7a0e0fe9291e23a2a2e9 # v6.1.0
with:
images: ${{ env.REGISTRY_SLUG || inputs.slug }}
tags: |
type=ref,event=branch,enable=${{ matrix.buildx_version == 'latest' && matrix.buildkit_image == 'moby/buildkit:buildx-stable-1' }}
type=ref,event=tag,enable=${{ matrix.buildx_version == 'latest' && matrix.buildkit_image == 'moby/buildkit:buildx-stable-1' }}
type=raw,gh-runid-${{ github.run_id }}
-
name: Set up QEMU
uses: docker/setup-qemu-action@ce360397dd3f832beb865e1373c09c0e9f86d70a # v4.0.0
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4.1.0
with:
version: ${{ matrix.buildx_version }}
buildkitd-config: /tmp/buildkitd.toml
buildkitd-flags: --debug --allow-insecure-entitlement security.insecure --allow-insecure-entitlement network.host
driver-opts: |
image=${{ matrix.buildkit_image }}
network=host
-
name: Login to Registry
if: github.event_name != 'pull_request' && (inputs.type == 'remote' || env.REGISTRY_USER != '')
uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4.2.0
with:
registry: ${{ env.REGISTRY_FQDN || inputs.registry }}
username: ${{ env.REGISTRY_USER || secrets.registry_username }}
password: ${{ env.REGISTRY_PASSWORD || secrets.registry_password }}
-
name: Build and push
uses: ./
with:
context: ./test
file: ./test/multi.Dockerfile
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/ppc64le,linux/s390x
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=registry,ref=${{ env.REGISTRY_SLUG || inputs.slug }}:master
cache-to: type=inline
-
name: Inspect image
env:
SLUG: ${{ env.REGISTRY_SLUG || inputs.slug }}
run: |
docker pull ${SLUG}:${{ steps.meta.outputs.version }}
docker image inspect ${SLUG}:${{ steps.meta.outputs.version }}
-
name: Check manifest
env:
SLUG: ${{ env.REGISTRY_SLUG || inputs.slug }}
run: |
docker buildx imagetools inspect ${SLUG}:${{ steps.meta.outputs.version }} --format '{{json .}}'