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

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
``` ```