I manage a bunch of snaps, some of which are available across numerous architectures. e.g.
root@snapcrafters:~# snapcraft status ddgr
Track Arch Channel Version Revision
latest amd64 stable 1.6 188
candidate ^ ^
beta 1.6 188
edge 1.6 195
arm64 stable 1.6 191
candidate ^ ^
beta 1.6 191
edge 1.6 196
armhf stable 1.6 190
candidate ^ ^
beta 1.6 190
edge 1.6 197
i386 stable 1.6 187
candidate ^ ^
beta 1.6 187
edge 1.6 193
ppc64el stable 1.6 189
candidate ^ ^
beta 1.6 189
edge 1.6 194
s390x stable 1.6 186
candidate ^ ^
beta 1.6 186
edge 1.6 192
So when I get a security mail (which are <3 btw) I have to rebuilt (which is one button press) then test and release a bunch of revisions.
Previously I’d go snapcraft release ddgr 192 stable,beta
then snapcraft release ddgr 194 stable,beta
which can be made better with for f in 186 187 188 189 190 191; do snapcraft release ddgr $f stable,beta; done
but that’s still quite manky and error prone if I typo a revision.
Can I get some kind of snapcraft release ddgr --from edge --to stable,beta
or some other meaningful way to release en-masse?