kamal icon indicating copy to clipboard operation
kamal copied to clipboard

Pushing tagged images doesn't work for the second tag with `multiarch: false`

Open powerc9000 opened this issue 1 year ago • 1 comments

If you have

builder:
    multiarch: false

when running kamal deploy --version=qa kamal eventually tries to run

docker build -t <repo-url>:qa -t <repo-url>:latest --label service="service-name" --file Dockerfile . && docker push <repo-url>:qa && docker push <repo-url>:latest

The first docker push works and pushes an image. But the second push errors with tag does not exist: <repo-url>:latest. This seems related to https://github.com/docker/setup-buildx-action/issues/116

This doesn't happen with multiarch builds or when a builder cache is used.

powerc9000 avatar Nov 01 '23 21:11 powerc9000

https://github.com/docker/setup-buildx-action/issues/116 looks like a different issue, where the tags are not available at all.

I've tried to reproduce this but I can't - running kamal deploy repeatedly with a version in the integration tests (which uses the multiarch: false setting) succeeds.

djmb avatar Mar 06 '24 12:03 djmb

Going to close this one as the multiarch option has been removed in Kamal 2.

djmb avatar Sep 30 '24 07:09 djmb