Files
build-push-action/.github/workflows/.e2e-run.yml
Tõnis Tiigi 473e09f9b5
Some checks failed
codeql / analyze (push) Failing after 1m33s
zizmor / zizmor (push) Failing after 1s
validate / prepare (push) Successful in 19s
test / test (push) Successful in 49s
validate / validate (push) Successful in 1m56s
e2e / build (artifactory, Artifactory, infradock.jfrog.io, infradock.jfrog.io/test-ghaction/build-push-action, remote) (push) Failing after 41s
e2e / build (acr, Azure Container Registry, officialgithubactions.azurecr.io, officialgithubactions.azurecr.io/test-docker-action, remote) (push) Failing after 46s
e2e / build (dockerhub, Docker Hub, , ghactionstest/ghactionstest, remote) (push) Failing after 56s
e2e / build (aws, AWS ECR Public, public.ecr.aws, public.ecr.aws/q3b5f1u4/test-docker-action, remote) (push) Failing after 1m0s
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 1m0s
e2e / build (ghcr, GitHub, ghcr.io, ghcr.io/docker-ghactiontest/test, remote) (push) Failing after 58s
e2e / build (none, distribution, Distribution, local) (push) Failing after 17s
e2e / build (gitlab, GitLab, registry.gitlab.com, registry.gitlab.com/test1716/test, remote) (push) Failing after 59s
e2e / build (none, harbor, Harbor, local) (push) Failing after 19s
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 1m8s
ci / example (push) Failing after 7s
e2e / build (none, nexus, Nexus, local) (push) Failing after 19s
e2e / build (quay, Quay, quay.io, quay.io/docker_build_team/ghactiontest, remote) (push) Failing after 39s
ci / path-context (push) Failing after 33s
ci / error (push) Failing after 11s
ci / error-buildx (push) Successful in 27s
ci / docker-driver (push) Failing after 7s
ci / export-docker (push) Successful in 18s
ci / secret (push) Successful in 25s
ci / secret-files (push) Successful in 27s
ci / secret-envs (push) Successful in 26s
ci / network (push) Successful in 26s
ci / shm-size (push) Successful in 25s
ci / ulimit (push) Successful in 27s
ci / cgroup-parent (push) Successful in 25s
ci / add-hosts (push) Successful in 25s
ci / no-cache-filters (push) Successful in 24s
ci / attests-compat (moby/buildkit:buildx-stable-1, v0.9.1) (push) Failing after 16s
ci / attests-compat (moby/buildkit:buildx-stable-1, latest) (push) Successful in 43s
ci / attests-compat (moby/buildkit:latest, edge) (push) Successful in 35s
ci / provenance (, type=image,name=localhost:5000/name/app:latest,push=true, image) (push) Failing after 7s
ci / provenance (mode=max, /tmp/buildx-build, binary) (push) Failing after 6s
ci / attests-compat (moby/buildkit:v0.10.6, latest) (push) Successful in 33s
ci / provenance (mode=max, type=image,name=localhost:5000/name/app:latest,push=true, image) (push) Failing after 8s
ci / provenance (, /tmp/buildx-build, binary) (push) Failing after 38s
ci / sbom (/tmp/buildx-build, binary) (push) Failing after 7s
ci / multi (multi) (push) Failing after 7s
ci / multi (multi-sudo) (push) Failing after 7s
ci / digest (docker, false, false) (push) Failing after 7s
ci / digest (docker, false, true) (push) Failing after 7s
ci / digest (docker, true, false) (push) Failing after 6s
ci / digest (docker-container, false, false) (push) Failing after 7s
ci / digest (docker-container, false, true) (push) Failing after 7s
ci / digest (docker-container, true, false) (push) Failing after 7s
ci / registry-cache (push) Failing after 6s
ci / github-cache (push) Failing after 7s
ci / sbom (type=image,name=localhost:5000/name/app:latest,push=true, image) (push) Failing after 39s
ci / local-cache (push) Failing after 6s
ci / named-context-container (push) Failing after 6s
ci / standalone (push) Successful in 24s
ci / named-context-pin (push) Successful in 27s
ci / named-context-docker (push) Successful in 22s
ci / docker-config-malformed (push) Successful in 17s
ci / proxy-docker-config (push) Failing after 7s
ci / proxy-buildkitd (push) Failing after 8s
ci / annotations (push) Failing after 7s
ci / multi-output (push) Failing after 7s
ci / summary-not-supported (push) Failing after 22s
ci / load-and-push (push) Failing after 37s
ci / minimal (push) Successful in 4m41s
ci / git-context (push) Failing after 4m50s
ci / git-context-query (push) Failing after 4m50s
ci / git-context-secret (push) Failing after 4m48s
ci / checks (edge) (push) Successful in 22s
ci / checks (latest) (push) Successful in 25s
ci / checks (v0.14.1) (push) Successful in 26s
ci / annotations-disabled (push) Successful in 28s
ci / call-check (push) Successful in 21s
ci / summary-disable (push) Successful in 4m41s
ci / record-upload-disable (push) Successful in 4m38s
ci / record-retention-days (0) (push) Successful in 4m45s
ci / record-retention-days (2) (push) Successful in 4m47s
ci / no-default-attestations (push) Successful in 3m58s
Merge pull request #1539 from crazy-max/e2e-scope-login
ci(e2e): scope login to push
2026-05-26 10:11:53 -07:00

135 lines
4.4 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 }}
scope: '@push'
-
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