Compare commits

...

9 Commits
v7 ... master

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
Tõnis Tiigi
dbac3ca1e5 Merge pull request #1481 from docker/dependabot/github_actions/docker/bake-action-7
Some checks failed
validate / prepare (push) Successful in 52s
test / test (push) Successful in 1m46s
validate / validate (push) Successful in 1m34s
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 32s
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 31s
e2e / build (distribution, Distribution, local) (push) Failing after 24s
e2e / build (Artifactory, ARTIFACTORY_TOKEN, infradock.jfrog.io, infradock.jfrog.io/test-ghaction/build-push-action, remote, ARTIFACTORY_USERNAME) (push) Failing after 1m13s
e2e / build (harbor, Harbor, local) (push) Failing after 25s
e2e / build (Docker Hub, DOCKERHUB_TOKEN, , ghactionstest/ghactionstest, remote, DOCKERHUB_USERNAME) (push) Failing after 1m29s
e2e / build (GitLab, GITLAB_TOKEN, registry.gitlab.com, registry.gitlab.com/test1716/test, remote, GITLAB_USERNAME) (push) Failing after 1m25s
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 1m28s
e2e / build (Quay, QUAY_TOKEN, quay.io, quay.io/docker_build_team/ghactiontest, remote, QUAY_USERNAME) (push) Failing after 1m11s
e2e / build (nexus, Nexus, local) (push) Failing after 28s
e2e / build (GitHub, GHCR_PAT, ghcr.io, ghcr.io/docker-ghactiontest/test, remote, GHCR_USERNAME) (push) Failing after 1m40s
e2e / build (Azure Container Registry, AZURE_CLIENT_SECRET, officialgithubactions.azurecr.io, officialgithubactions.azurecr.io/test-docker-action, remote, AZURE_CLIENT_ID) (push) Failing after 1m43s
ci / git-context-secret (push) Failing after 11s
ci / error (push) Failing after 9s
ci / docker-driver (push) Failing after 7s
ci / export-docker (push) Successful in 14s
ci / path-context (push) Failing after 31s
ci / example (push) Failing after 27s
ci / error-buildx (push) Successful in 29s
ci / secret (push) Successful in 22s
ci / secret-envs (push) Successful in 20s
ci / network (push) Successful in 20s
ci / shm-size (push) Successful in 20s
ci / ulimit (push) Successful in 19s
ci / add-hosts (push) Successful in 19s
ci / cgroup-parent (push) Successful in 22s
ci / no-cache-filters (push) Successful in 22s
ci / attests-compat (moby/buildkit:buildx-stable-1, v0.9.1) (push) Failing after 12s
ci / attests-compat (moby/buildkit:buildx-stable-1, latest) (push) Successful in 31s
ci / provenance (mode=max, type=image,name=localhost:5000/name/app:latest,push=true, image) (push) Failing after 6s
ci / attests-compat (moby/buildkit:latest, edge) (push) Successful in 35s
ci / attests-compat (moby/buildkit:v0.10.6, latest) (push) Successful in 30s
ci / sbom (/tmp/buildx-build, binary) (push) Failing after 6s
ci / sbom (type=image,name=localhost:5000/name/app:latest,push=true, image) (push) Failing after 7s
ci / multi (multi) (push) Failing after 6s
ci / multi (multi-sudo) (push) Failing after 6s
ci / minimal (push) Successful in 1m52s
ci / digest (docker, false, false) (push) Failing after 7s
ci / git-context (push) Failing after 1m45s
ci / provenance (, /tmp/buildx-build, binary) (push) Failing after 41s
ci / provenance (, type=image,name=localhost:5000/name/app:latest,push=true, image) (push) Failing after 40s
ci / provenance (mode=max, /tmp/buildx-build, binary) (push) Failing after 39s
ci / digest (docker-container, true, false) (push) Failing after 6s
ci / registry-cache (push) Failing after 7s
ci / github-cache (push) Failing after 7s
ci / digest (docker, false, true) (push) Failing after 16s
ci / digest (docker, true, false) (push) Successful in 16s
ci / local-cache (push) Failing after 6s
ci / named-context-container (push) Failing after 8s
ci / digest (docker-container, false, false) (push) Successful in 27s
ci / docker-config-malformed (push) Successful in 13s
ci / proxy-docker-config (push) Failing after 10s
ci / digest (docker-container, false, true) (push) Failing after 29s
ci / proxy-buildkitd (push) Failing after 10s
ci / named-context-docker (push) Successful in 22s
ci / standalone (push) Successful in 26s
ci / named-context-pin (push) Successful in 26s
ci / summary-not-supported (push) Failing after 14s
ci / annotations (push) Failing after 24s
ci / multi-output (push) Failing after 28s
ci / load-and-push (push) Failing after 29s
ci / checks (edge) (push) Successful in 18s
ci / checks (latest) (push) Successful in 19s
ci / checks (v0.14.1) (push) Successful in 19s
ci / annotations-disabled (push) Successful in 19s
ci / call-check (push) Successful in 17s
ci / summary-disable (push) Successful in 2m58s
ci / record-retention-days (0) (push) Successful in 2m56s
ci / record-retention-days (2) (push) Successful in 2m58s
ci / record-upload-disable (push) Successful in 3m3s
ci / no-default-attestations (push) Successful in 2m31s
chore(deps): Bump docker/bake-action from 6 to 7
2026-03-09 12:34:41 -07:00
CrazyMax
b0bdd3ad21 ci: switch to matrix subaction
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-03-09 16:26:49 +01:00
dependabot[bot]
3cb57ac71c chore(deps): Bump docker/bake-action from 6 to 7
Bumps [docker/bake-action](https://github.com/docker/bake-action) from 6 to 7.
- [Release notes](https://github.com/docker/bake-action/releases)
- [Commits](https://github.com/docker/bake-action/compare/v6...v7)

---
updated-dependencies:
- dependency-name: docker/bake-action
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-09 15:25:03 +00:00
CrazyMax
f64672cf50 Merge pull request #1482 from docker/dependabot/github_actions/docker/metadata-action-6
chore(deps): Bump docker/metadata-action from 5 to 6
2026-03-09 16:23:42 +01:00
dependabot[bot]
63e92d1fdf chore(deps): Bump docker/metadata-action from 5 to 6
Bumps [docker/metadata-action](https://github.com/docker/metadata-action) from 5 to 6.
- [Release notes](https://github.com/docker/metadata-action/releases)
- [Commits](https://github.com/docker/metadata-action/compare/v5...v6)

---
updated-dependencies:
- dependency-name: docker/metadata-action
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-06 11:52:23 +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
7 changed files with 26 additions and 80 deletions

View File

@@ -83,7 +83,7 @@ jobs:
- -
name: Docker meta name: Docker meta
id: meta id: meta
uses: docker/metadata-action@v5 uses: docker/metadata-action@v6
with: with:
images: ${{ env.REGISTRY_SLUG || inputs.slug }} images: ${{ env.REGISTRY_SLUG || inputs.slug }}
tags: | tags: |

View File

@@ -220,7 +220,7 @@ jobs:
- -
name: Docker meta name: Docker meta
id: meta id: meta
uses: docker/metadata-action@v5 uses: docker/metadata-action@v6
with: with:
images: ${{ env.DOCKER_IMAGE }} images: ${{ env.DOCKER_IMAGE }}
tags: | tags: |
@@ -1219,7 +1219,7 @@ jobs:
- -
name: Docker meta name: Docker meta
id: meta id: meta
uses: docker/metadata-action@v5 uses: docker/metadata-action@v6
with: with:
images: ${{ env.DOCKER_IMAGE }} images: ${{ env.DOCKER_IMAGE }}
tags: | tags: |

View File

@@ -20,7 +20,7 @@ jobs:
uses: actions/checkout@v6 uses: actions/checkout@v6
- -
name: Test name: Test
uses: docker/bake-action@v6 uses: docker/bake-action@v7
with: with:
source: . source: .
targets: test targets: test

View File

@@ -14,7 +14,7 @@ jobs:
- -
name: GitHub auth token from GitHub App name: GitHub auth token from GitHub App
id: docker-read-app id: docker-read-app
uses: actions/create-github-app-token@v2 uses: actions/create-github-app-token@v3
with: with:
app-id: ${{ secrets.GHACTIONS_REPO_WRITE_APP_ID }} app-id: ${{ secrets.GHACTIONS_REPO_WRITE_APP_ID }}
private-key: ${{ secrets.GHACTIONS_REPO_WRITE_APP_PRIVATE_KEY }} private-key: ${{ secrets.GHACTIONS_REPO_WRITE_APP_PRIVATE_KEY }}
@@ -28,7 +28,7 @@ jobs:
token: ${{ steps.docker-read-app.outputs.token || github.token }} token: ${{ steps.docker-read-app.outputs.token || github.token }}
- -
name: Build name: Build
uses: docker/bake-action@v6 uses: docker/bake-action@v7
with: with:
source: . source: .
targets: build targets: build

View File

@@ -15,15 +15,15 @@ jobs:
prepare: prepare:
runs-on: ubuntu-latest runs-on: ubuntu-latest
outputs: outputs:
targets: ${{ steps.generate.outputs.targets }} matrix: ${{ steps.generate.outputs.matrix }}
steps: steps:
- -
name: Checkout name: Checkout
uses: actions/checkout@v6 uses: actions/checkout@v6
- -
name: List targets name: Generate matrix
id: generate id: generate
uses: docker/bake-action/subaction/list-targets@v6 uses: docker/bake-action/subaction/matrix@v7
with: with:
target: validate target: validate
@@ -34,10 +34,10 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
target: ${{ fromJson(needs.prepare.outputs.targets) }} include: ${{ fromJson(needs.prepare.outputs.matrix) }}
steps: steps:
- -
name: Validate name: Validate
uses: docker/bake-action@v6 uses: docker/bake-action@v7
with: with:
targets: ${{ matrix.target }} targets: ${{ matrix.target }}

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