mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-09 09:17:27 +00:00
Add flux tag artifact command
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
parent
2912d1d437
commit
44762933b3
1 changed files with 13 additions and 0 deletions
|
|
@ -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…
Reference in a new issue