mirror of
https://github.com/containers/skopeo.git
synced 2026-02-21 06:32:10 +00:00
Add a "tag" command, for adding names to locally-stored images. Signed-off-by: Nalin Dahyabhai <nalin@redhat.com> Closes: #110 Approved by: rhatdan
20 lines
625 B
Bash
20 lines
625 B
Bash
#!/usr/bin/env bats
|
|
|
|
load helpers
|
|
|
|
@test "tag" {
|
|
cid=$(buildah from --pull=false --signature-policy ${TESTSDIR}/policy.json scratch)
|
|
run buildah commit --signature-policy ${TESTSDIR}/policy.json "$cid" scratch-image
|
|
[ "$status" -eq 0 ]
|
|
run buildah inspect --type image tagged-image
|
|
[ "$status" -ne 0 ]
|
|
run buildah tag scratch-image tagged-image tagged-also-image named-image
|
|
[ "$status" -eq 0 ]
|
|
run buildah inspect --type image tagged-image
|
|
[ "$status" -eq 0 ]
|
|
run buildah inspect --type image tagged-also-image
|
|
[ "$status" -eq 0 ]
|
|
run buildah inspect --type image named-image
|
|
[ "$status" -eq 0 ]
|
|
}
|