Compare commits

...

4 Commits

Author SHA1 Message Date
Tõnis Tiigi
eb6512707b 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 (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 1m38s
e2e / build (Artifactory, ARTIFACTORY_TOKEN, infradock.jfrog.io, infradock.jfrog.io/test-ghaction/build-push-action, remote, ARTIFACTORY_USERNAME) (push) Failing after 1m36s
e2e / build (GitHub, GHCR_PAT, ghcr.io, ghcr.io/docker-ghactiontest/test, remote, GHCR_USERNAME) (push) Failing after 1m35s
e2e / build (GitLab, GITLAB_TOKEN, registry.gitlab.com, registry.gitlab.com/test1716/test, remote, GITLAB_USERNAME) (push) Failing after 1m34s
e2e / build (Docker Hub, DOCKERHUB_TOKEN, , ghactionstest/ghactionstest, remote, DOCKERHUB_USERNAME) (push) Failing after 1m51s
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 1m55s
e2e / build (Azure Container Registry, AZURE_CLIENT_SECRET, officialgithubactions.azurecr.io, officialgithubactions.azurecr.io/test-docker-action, remote, AZURE_CLIENT_ID) (push) Failing after 1m54s
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 1m51s
e2e / build (distribution, Distribution, local) (push) Failing after 21s
e2e / build (nexus, Nexus, local) (push) Failing after 20s
ci / path-context (push) Failing after 6s
e2e / build (harbor, Harbor, local) (push) Failing after 31s
ci / error (push) Failing after 14s
e2e / build (Quay, QUAY_TOKEN, quay.io, quay.io/docker_build_team/ghactiontest, remote, QUAY_USERNAME) (push) Failing after 44s
ci / docker-driver (push) Successful in 13s
ci / example (push) Failing after 30s
ci / export-docker (push) Successful in 13s
ci / error-buildx (push) Successful in 29s
ci / secret (push) Successful in 22s
ci / secret-envs (push) Successful in 23s
ci / network (push) Successful in 20s
ci / shm-size (push) Successful in 20s
ci / ulimit (push) Successful in 20s
ci / cgroup-parent (push) Successful in 22s
ci / attests-compat (moby/buildkit:buildx-stable-1, v0.9.1) (push) Failing after 13s
ci / add-hosts (push) Successful in 23s
ci / no-cache-filters (push) Successful in 22s
ci / attests-compat (moby/buildkit:buildx-stable-1, latest) (push) Successful in 33s
ci / provenance (mode=max, /tmp/buildx-build, binary) (push) Failing after 6s
ci / attests-compat (moby/buildkit:latest, edge) (push) Successful in 32s
ci / attests-compat (moby/buildkit:v0.10.6, latest) (push) Successful in 32s
ci / provenance (mode=max, type=image,name=localhost:5000/name/app:latest,push=true, image) (push) Failing after 7s
ci / sbom (/tmp/buildx-build, binary) (push) Failing after 7s
ci / sbom (type=image,name=localhost:5000/name/app:latest,push=true, image) (push) Failing after 6s
ci / provenance (, /tmp/buildx-build, binary) (push) Failing after 37s
ci / provenance (, type=image,name=localhost:5000/name/app:latest,push=true, image) (push) Failing after 37s
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 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 / local-cache (push) Failing after 6s
ci / multi (multi) (push) Failing after 41s
ci / multi (multi-sudo) (push) Failing after 40s
ci / minimal (push) Successful in 2m36s
ci / standalone (push) Successful in 26s
ci / named-context-docker (push) Successful in 24s
ci / named-context-pin (push) Successful in 27s
ci / proxy-docker-config (push) Failing after 7s
ci / docker-config-malformed (push) Successful in 15s
ci / proxy-buildkitd (push) Failing after 10s
ci / annotations (push) Failing after 9s
ci / multi-output (push) Failing after 8s
ci / git-context (push) Failing after 2m54s
ci / git-context-secret (push) Failing after 2m58s
ci / named-context-container (push) Successful in 34s
ci / summary-not-supported (push) Failing after 14s
ci / load-and-push (push) Failing after 29s
ci / checks (edge) (push) Successful in 16s
ci / checks (latest) (push) Successful in 15s
ci / checks (v0.14.1) (push) Successful in 17s
ci / annotations-disabled (push) Successful in 19s
ci / call-check (push) Successful in 18s
ci / summary-disable (push) Successful in 3m36s
ci / record-retention-days (0) (push) Successful in 3m33s
ci / record-upload-disable (push) Successful in 3m40s
ci / record-retention-days (2) (push) Successful in 3m35s
ci / no-default-attestations (push) Successful in 3m15s
readme: update to v7
2026-03-16 17:56:31 -07:00
CrazyMax
1031bc45c5 Merge pull request #1487 from docker/dependabot/github_actions/actions/create-github-app-token-3
Some checks failed
ci / docker-driver (push) Failing after 6s
ci / error (push) Failing after 7s
ci / export-docker (push) Successful in 15s
ci / secret (push) Successful in 21s
ci / path-context (push) Failing after 30s
ci / example (push) Failing after 29s
ci / error-buildx (push) Successful in 32s
ci / secret-envs (push) Successful in 20s
ci / network (push) Successful in 20s
ci / ulimit (push) Successful in 19s
ci / shm-size (push) Successful in 21s
ci / cgroup-parent (push) Successful in 20s
ci / add-hosts (push) Successful in 21s
ci / attests-compat (moby/buildkit:buildx-stable-1, v0.9.1) (push) Failing after 13s
ci / no-cache-filters (push) Successful in 21s
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 7s
ci / attests-compat (moby/buildkit:latest, edge) (push) Successful in 34s
ci / attests-compat (moby/buildkit:buildx-stable-1, latest) (push) Successful in 37s
ci / provenance (mode=max, type=image,name=localhost:5000/name/app:latest,push=true, image) (push) Failing after 6s
ci / sbom (/tmp/buildx-build, binary) (push) Failing after 7s
ci / multi (multi) (push) Failing after 6s
ci / attests-compat (moby/buildkit:v0.10.6, latest) (push) Successful in 37s
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 6s
ci / digest (docker, true, false) (push) Failing after 6s
ci / provenance (, /tmp/buildx-build, binary) (push) Failing after 43s
ci / digest (docker-container, false, false) (push) Failing after 7s
ci / digest (docker-container, true, false) (push) Failing after 6s
ci / registry-cache (push) Failing after 6s
ci / github-cache (push) Failing after 7s
ci / local-cache (push) Failing after 6s
ci / git-context (push) Failing after 2m8s
ci / minimal (push) Successful in 2m10s
ci / git-context-secret (push) Failing after 2m15s
ci / digest (docker-container, false, true) (push) Failing after 23s
ci / sbom (type=image,name=localhost:5000/name/app:latest,push=true, image) (push) Failing after 47s
ci / proxy-docker-config (push) Failing after 8s
ci / docker-config-malformed (push) Successful in 14s
ci / named-context-docker (push) Successful in 20s
ci / proxy-buildkitd (push) Failing after 10s
ci / standalone (push) Successful in 26s
ci / named-context-pin (push) Successful in 27s
ci / load-and-push (push) Failing after 7s
ci / summary-not-supported (push) Failing after 9s
ci / named-context-container (push) Successful in 34s
ci / annotations (push) Failing after 32s
ci / checks (edge) (push) Successful in 20s
ci / multi-output (push) Failing after 37s
ci / checks (latest) (push) Successful in 20s
ci / checks (v0.14.1) (push) Successful in 19s
ci / annotations-disabled (push) Successful in 18s
ci / call-check (push) Successful in 17s
ci / summary-disable (push) Successful in 2m35s
ci / record-retention-days (0) (push) Successful in 3m39s
ci / record-upload-disable (push) Successful in 3m47s
ci / record-retention-days (2) (push) Successful in 4m1s
ci / no-default-attestations (push) Successful in 3m39s
e2e / build (GitLab, GITLAB_TOKEN, registry.gitlab.com, registry.gitlab.com/test1716/test, remote, GITLAB_USERNAME) (push) Failing after 3m44s
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 7m12s
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 3m53s
e2e / build (GitHub, GHCR_PAT, ghcr.io, ghcr.io/docker-ghactiontest/test, remote, GHCR_USERNAME) (push) Failing after 4m26s
e2e / build (Azure Container Registry, AZURE_CLIENT_SECRET, officialgithubactions.azurecr.io, officialgithubactions.azurecr.io/test-docker-action, remote, AZURE_CLIENT_ID) (push) Failing after 5m42s
e2e / build (distribution, Distribution, local) (push) Failing after 20s
e2e / build (Docker Hub, DOCKERHUB_TOKEN, , ghactionstest/ghactionstest, remote, DOCKERHUB_USERNAME) (push) Failing after 4m35s
e2e / build (Artifactory, ARTIFACTORY_TOKEN, infradock.jfrog.io, infradock.jfrog.io/test-ghaction/build-push-action, remote, ARTIFACTORY_USERNAME) (push) Failing after 7m27s
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 7m35s
e2e / build (harbor, Harbor, local) (push) Failing after 16s
e2e / build (Quay, QUAY_TOKEN, quay.io, quay.io/docker_build_team/ghactiontest, remote, QUAY_USERNAME) (push) Failing after 32s
validate / prepare (push) Successful in 17s
e2e / build (nexus, Nexus, local) (push) Failing after 19s
test / test (push) Successful in 1m31s
validate / validate (push) Successful in 29s
chore(deps): Bump actions/create-github-app-token from 2 to 3
2026-03-16 14:06:41 +01:00
dependabot[bot]
344ec24f8d chore(deps): Bump actions/create-github-app-token from 2 to 3
Bumps [actions/create-github-app-token](https://github.com/actions/create-github-app-token) from 2 to 3.
- [Release notes](https://github.com/actions/create-github-app-token/releases)
- [Commits](https://github.com/actions/create-github-app-token/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/create-github-app-token
  dependency-version: '3'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-16 11:55:56 +00:00
CrazyMax
155e77ab84 readme: update to v7
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-03-05 22:21:36 +01:00
3 changed files with 16 additions and 70 deletions

View File

@@ -14,7 +14,7 @@ jobs:
-
name: GitHub auth token from GitHub App
id: docker-read-app
uses: actions/create-github-app-token@v2
uses: actions/create-github-app-token@v3
with:
app-id: ${{ secrets.GHACTIONS_REPO_WRITE_APP_ID }}
private-key: ${{ secrets.GHACTIONS_REPO_WRITE_APP_PRIVATE_KEY }}

View File

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

View File

@@ -1,8 +1,6 @@
# Troubleshooting
* [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)
## 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
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)
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`
You may encounter this issue if you're using `github.repository` as a repo slug
@@ -105,15 +53,14 @@ to generate sanitized tags:
```yaml
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
uses: docker/metadata-action@v6
with:
images: ghcr.io/${{ github.repository }}
tags: latest
- name: Build and push
uses: docker/build-push-action@v6
uses: docker/build-push-action@v7
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
```
@@ -122,16 +69,15 @@ Or a dedicated step to sanitize the slug:
```yaml
- name: Sanitize repo slug
uses: actions/github-script@v6
uses: actions/github-script@v8
id: repo_slug
with:
result-encoding: string
script: return 'ghcr.io/${{ github.repository }}'.toLowerCase()
- name: Build and push
uses: docker/build-push-action@v6
uses: docker/build-push-action@v7
with:
context: .
push: true
tags: ${{ steps.repo_slug.outputs.result }}:latest
```