Add `flux tag artifact` command

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
pull/2601/head
Stefan Prodan 3 years ago
parent 2912d1d437
commit 44762933b3
No known key found for this signature in database
GPG Key ID: 3299AEB0E4085BAF

@ -48,6 +48,13 @@ and push the archive to a container registry as an OCI artifact.
flux push artifact docker.io/org/app-config:v1.0.0 -f ./deploy
```
To ease the promotion workflow of a specific version from one environment to another, the CLI
should offer a tagging command.
```sh
flux tag artifact docker.io/org/app-config:v1.0.0 latest
```
Flux CLI with produce artifacts of type `application/vnd.oci.image.config.v1+json`.
The directory pointed to by `-f` is archived and compressed in the `tar+gzip` format
and the layer media type is set to `application/vnd.oci.image.layer.v1.tar+gzip`.
@ -216,6 +223,12 @@ Sign the config image with cosign:
cosign sign --key cosign.key ghcr.io/org/my-app-config:v1.0.0
```
Mark v1.0.0 as latest:
```sh
flux tag artifact ghcr.io/org/my-app-config:v1.0.0 latest
```
#### Story 2
> As a developer I want to deploy my app using Kubernetes manifests published as OCI artifacts to GHCR.

Loading…
Cancel
Save