Merge pull request #1480 from crazy-max/update-readme
Some checks failed
ci / error (push) Failing after 7s
ci / docker-driver (push) Failing after 6s
ci / export-docker (push) Successful in 11s
ci / example (push) Failing after 28s
ci / secret (push) Successful in 20s
ci / error-buildx (push) Successful in 29s
ci / path-context (push) Failing after 30s
ci / secret-envs (push) Successful in 19s
ci / network (push) Successful in 20s
ci / shm-size (push) Successful in 21s
ci / ulimit (push) Successful in 21s
ci / cgroup-parent (push) Successful in 21s
ci / add-hosts (push) Successful in 19s
ci / attests-compat (moby/buildkit:buildx-stable-1, v0.9.1) (push) Failing after 9s
ci / no-cache-filters (push) Successful in 19s
ci / provenance (, /tmp/buildx-build, binary) (push) Failing after 7s
ci / provenance (mode=max, /tmp/buildx-build, binary) (push) Failing after 6s
ci / provenance (mode=max, type=image,name=localhost:5000/name/app:latest,push=true, image) (push) Failing after 6s
ci / attests-compat (moby/buildkit:buildx-stable-1, latest) (push) Successful in 38s
ci / sbom (/tmp/buildx-build, binary) (push) Failing after 7s
ci / attests-compat (moby/buildkit:latest, edge) (push) Successful in 36s
ci / attests-compat (moby/buildkit:v0.10.6, latest) (push) Successful in 33s
ci / multi (multi) (push) Failing after 6s
ci / multi (multi-sudo) (push) Failing after 7s
ci / digest (docker, false, false) (push) Failing after 6s
ci / digest (docker, false, true) (push) Failing after 6s
ci / digest (docker, true, false) (push) Failing after 7s
ci / provenance (, type=image,name=localhost:5000/name/app:latest,push=true, image) (push) Failing after 36s
ci / digest (docker-container, false, false) (push) Failing after 7s
ci / digest (docker-container, false, true) (push) Failing after 6s
ci / digest (docker-container, true, false) (push) Failing after 7s
ci / github-cache (push) Failing after 6s
ci / local-cache (push) Failing after 6s
ci / minimal (push) Successful in 2m2s
ci / sbom (type=image,name=localhost:5000/name/app:latest,push=true, image) (push) Failing after 36s
ci / named-context-container (push) Failing after 8s
ci / git-context (push) Failing after 2m11s
ci / standalone (push) Successful in 22s
ci / git-context-secret (push) Failing after 2m16s
ci / docker-config-malformed (push) Successful in 10s
ci / named-context-pin (push) Successful in 22s
ci / named-context-docker (push) Successful in 18s
ci / proxy-docker-config (push) Failing after 7s
ci / proxy-buildkitd (push) Failing after 8s
ci / registry-cache (push) Failing after 33s
ci / load-and-push (push) Failing after 7s
ci / summary-not-supported (push) Failing after 13s
ci / checks (edge) (push) Successful in 18s
ci / annotations (push) Failing after 30s
ci / checks (latest) (push) Successful in 18s
ci / multi-output (push) Failing after 34s
ci / checks (v0.14.1) (push) Successful in 18s
ci / annotations-disabled (push) Successful in 19s
ci / call-check (push) Successful in 17s
ci / summary-disable (push) Successful in 2m26s
ci / record-retention-days (0) (push) Successful in 3m30s
ci / record-upload-disable (push) Successful in 3m49s
ci / record-retention-days (2) (push) Successful in 3m48s
ci / no-default-attestations (push) Successful in 3m24s
e2e / build (Artifactory, ARTIFACTORY_TOKEN, infradock.jfrog.io, infradock.jfrog.io/test-ghaction/build-push-action, remote, ARTIFACTORY_USERNAME) (push) Failing after 8m43s
e2e / build (Docker Hub, DOCKERHUB_TOKEN, , ghactionstest/ghactionstest, remote, DOCKERHUB_USERNAME) (push) Failing after 5m55s
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 5m38s
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 9m4s
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 9m1s
e2e / build (GitHub, GHCR_PAT, ghcr.io, ghcr.io/docker-ghactiontest/test, remote, GHCR_USERNAME) (push) Failing after 6m4s
e2e / build (Azure Container Registry, AZURE_CLIENT_SECRET, officialgithubactions.azurecr.io, officialgithubactions.azurecr.io/test-docker-action, remote, AZURE_CLIENT_ID) (push) Failing after 7m29s
e2e / build (GitLab, GITLAB_TOKEN, registry.gitlab.com, registry.gitlab.com/test1716/test, remote, GITLAB_USERNAME) (push) Failing after 6m0s
e2e / build (distribution, Distribution, local) (push) Failing after 30s
e2e / build (harbor, Harbor, local) (push) Failing after 29s
e2e / build (nexus, Nexus, local) (push) Failing after 19s
validate / prepare (push) Successful in 14s
e2e / build (Quay, QUAY_TOKEN, quay.io, quay.io/docker_build_team/ghactiontest, remote, QUAY_USERNAME) (push) Failing after 41s
test / test (push) Successful in 49s
validate / validate (push) Successful in 2m31s

readme: update to v7
This commit is contained in:
Tõnis Tiigi
2026-03-16 17:56:31 -07:00
committed by GitHub
2 changed files with 15 additions and 69 deletions

View File

@@ -62,19 +62,19 @@ jobs:
steps: steps:
- -
name: Login to Docker Hub name: Login to Docker Hub
uses: docker/login-action@v3 uses: docker/login-action@v4
with: with:
username: ${{ vars.DOCKERHUB_USERNAME }} username: ${{ vars.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }} password: ${{ secrets.DOCKERHUB_TOKEN }}
- -
name: Set up QEMU name: Set up QEMU
uses: docker/setup-qemu-action@v3 uses: docker/setup-qemu-action@v4
- -
name: Set up Docker Buildx name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3 uses: docker/setup-buildx-action@v4
- -
name: Build and push name: Build and push
uses: docker/build-push-action@v6 uses: docker/build-push-action@v7
with: with:
push: true push: true
tags: user/app:latest tags: user/app:latest
@@ -94,7 +94,7 @@ to the default Git context:
```yaml ```yaml
- -
name: Build and push name: Build and push
uses: docker/build-push-action@v6 uses: docker/build-push-action@v7
with: with:
context: "{{defaultContext}}:mysubdir" context: "{{defaultContext}}:mysubdir"
push: true push: true
@@ -109,7 +109,7 @@ named `GIT_AUTH_TOKEN` to be able to authenticate against it with Buildx:
```yaml ```yaml
- -
name: Build and push name: Build and push
uses: docker/build-push-action@v6 uses: docker/build-push-action@v7
with: with:
push: true push: true
tags: user/app:latest tags: user/app:latest
@@ -131,22 +131,22 @@ jobs:
steps: steps:
- -
name: Checkout name: Checkout
uses: actions/checkout@v5 uses: actions/checkout@v6
- -
name: Login to Docker Hub name: Login to Docker Hub
uses: docker/login-action@v3 uses: docker/login-action@v4
with: with:
username: ${{ vars.DOCKERHUB_USERNAME }} username: ${{ vars.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }} password: ${{ secrets.DOCKERHUB_TOKEN }}
- -
name: Set up QEMU name: Set up QEMU
uses: docker/setup-qemu-action@v3 uses: docker/setup-qemu-action@v4
- -
name: Set up Docker Buildx name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3 uses: docker/setup-buildx-action@v4
- -
name: Build and push name: Build and push
uses: docker/build-push-action@v6 uses: docker/build-push-action@v7
with: with:
context: . context: .
push: true push: true

View File

@@ -1,8 +1,6 @@
# Troubleshooting # Troubleshooting
* [Cannot push to a registry](#cannot-push-to-a-registry) * [Cannot push to a registry](#cannot-push-to-a-registry)
* [BuildKit container logs](#buildkit-container-logs)
* [With containerd](#with-containerd)
* [`repository name must be lowercase`](#repository-name-must-be-lowercase) * [`repository name must be lowercase`](#repository-name-must-be-lowercase)
## Cannot push to a registry ## Cannot push to a registry
@@ -21,59 +19,9 @@ These issues are not directly related to this action but are rather linked to
you're pushing your image. The quality of error message depends on the registry you're pushing your image. The quality of error message depends on the registry
and are usually not very informative. and are usually not very informative.
### BuildKit container logs
To help you solve this, you have to [enable debugging in the setup-buildx](https://github.com/docker/setup-buildx-action#buildkit-container-logs) To help you solve this, you have to [enable debugging in the setup-buildx](https://github.com/docker/setup-buildx-action#buildkit-container-logs)
action step and attach BuildKit container logs to your issue. action step and attach BuildKit container logs to your issue.
### With containerd
Next you can test pushing with [containerd action](https://github.com/crazy-max/ghaction-setup-containerd)
using the following workflow. If it works then open an issue on [BuildKit](https://github.com/moby/buildkit)
repository.
```yaml
name: containerd
on:
push:
jobs:
containerd:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
buildkitd-flags: --debug
-
name: Set up containerd
uses: crazy-max/ghaction-setup-containerd@v2
-
name: Build Docker image
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64,linux/arm64
tags: docker.io/user/app:latest
outputs: type=oci,dest=/tmp/image.tar
-
name: Import image in containerd
run: |
sudo ctr i import --base-name docker.io/user/app --digests --all-platforms /tmp/image.tar
-
name: Push image with containerd
run: |
sudo ctr --debug i push --user "${{ secrets.DOCKER_USERNAME }}:${{ secrets.DOCKER_PASSWORD }}" docker.io/user/app:latest
```
## `repository name must be lowercase` ## `repository name must be lowercase`
You may encounter this issue if you're using `github.repository` as a repo slug You may encounter this issue if you're using `github.repository` as a repo slug
@@ -105,15 +53,14 @@ to generate sanitized tags:
```yaml ```yaml
- name: Docker meta - name: Docker meta
id: meta id: meta
uses: docker/metadata-action@v4 uses: docker/metadata-action@v6
with: with:
images: ghcr.io/${{ github.repository }} images: ghcr.io/${{ github.repository }}
tags: latest tags: latest
- name: Build and push - name: Build and push
uses: docker/build-push-action@v6 uses: docker/build-push-action@v7
with: with:
context: .
push: true push: true
tags: ${{ steps.meta.outputs.tags }} tags: ${{ steps.meta.outputs.tags }}
``` ```
@@ -122,16 +69,15 @@ Or a dedicated step to sanitize the slug:
```yaml ```yaml
- name: Sanitize repo slug - name: Sanitize repo slug
uses: actions/github-script@v6 uses: actions/github-script@v8
id: repo_slug id: repo_slug
with: with:
result-encoding: string result-encoding: string
script: return 'ghcr.io/${{ github.repository }}'.toLowerCase() script: return 'ghcr.io/${{ github.repository }}'.toLowerCase()
- name: Build and push - name: Build and push
uses: docker/build-push-action@v6 uses: docker/build-push-action@v7
with: with:
context: .
push: true push: true
tags: ${{ steps.repo_slug.outputs.result }}:latest tags: ${{ steps.repo_slug.outputs.result }}:latest
``` ```