Skip to content

Add --all-tags flag to image push#1335

Open
realrajaryan wants to merge 4 commits into
apple:mainfrom
realrajaryan:users/realrajaryan/alltags
Open

Add --all-tags flag to image push#1335
realrajaryan wants to merge 4 commits into
apple:mainfrom
realrajaryan:users/realrajaryan/alltags

Conversation

@realrajaryan
Copy link
Copy Markdown
Member

@realrajaryan realrajaryan commented Mar 20, 2026

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

Motivation and Context

Adds --all-tags (-a) support to container image push, which pushes all locally tagged versions of a repository in parallel with bounded concurrency (--max-concurrent-uploads, default 3). It continues pushing remaining tags if one fails.

Usage: container image push --all-tags myregistry.io/myimage
Example:

❯ container image push --all-tags ghcr.io/sometest/alltagstest
The push refers to repository [ghcr.io/sometest/alltagstest]
v1: digest: sha256:28a33e0598da2b341d05e53803c5982377039baedfc8a82a4910d5acc4788c99 size: 5 KB
v2: digest: sha256:28a33e0598da2b341d05e53803c5982377039baedfc8a82a4910d5acc4788c99 size: 5 KB
latest: digest: sha256:28a33e0598da2b341d05e53803c5982377039baedfc8a82a4910d5acc4788c99 size: 5 KB

Note: -a on push now means --all-tags, not --arch. --arch remains available as a long-form flag.

Testing

  • Tested locally
  • Added/updated tests
  • Added/updated docs

@github-actions github-actions Bot added the cli label Mar 20, 2026
Comment thread Sources/Services/ContainerAPIService/Client/ClientImage.swift Outdated
Comment thread Sources/Services/ContainerImagesService/Server/ImagesService.swift Outdated
Comment thread Sources/Services/ContainerImagesService/Server/ImagesService.swift Outdated
Comment thread docs/command-reference.md Outdated
Comment thread Sources/ContainerCommands/Image/ImagePush.swift Outdated
Comment thread Sources/ContainerCommands/Image/ImagePush.swift Outdated
Comment thread Sources/Services/ContainerImagesService/Server/ImagesService.swift
Comment thread Sources/Services/ContainerImagesService/Server/ImagesService.swift Outdated
@jglogan jglogan modified the milestone: 2026-04 Mar 30, 2026
@realrajaryan realrajaryan changed the title Add --all-tags/-a flag to image push Add --all-tags flag to image push Mar 31, 2026
@realrajaryan realrajaryan force-pushed the users/realrajaryan/alltags branch from 06777c3 to 6bc20a4 Compare June 2, 2026 20:47
@realrajaryan realrajaryan force-pushed the users/realrajaryan/alltags branch from 6bc20a4 to 110ea83 Compare June 2, 2026 20:48
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 2, 2026

Code Coverage

Tier Line Coverage
Unit 34.53%
Integration 19.8%
Combined 53.71%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Request]: Add -a/--all-tags for container image push

4 participants