1
0
mirror of synced 2026-02-06 19:05:55 +00:00
Files
flux2/internal/flags
Adrien Fillon 0694a9582f Support logging in directly to the provider when pushing OCI artifacts
I've noticed during CI, that the current command
already expected a configured Docker client to
push artifacts to authenticated registries.

Some users might not want to have the Docker client
in their process (like a CI job) or build an handcrafted
config.json file.

This would allow this kind of behavior:

```
flux push artifact oci://my-registry.dev/foo:v1 \
  --source xxx \
  --revision xxx \
  --path . \
  --creds $TOKEN # Authenticate via "Bearer $TOKEN" Authorization header
```

Or via Autologin:

```
flux push artifact oci://012345678901.dkr.ecr.us-east-1.amazonaws.com/foo:v1 \
  --source xxx \
  --revision xxx \
  --path . \
  --provider aws
```

This has been implemented for:

* flux push artifact
* flux list artifact
* flux tag artifact
* flux pull artifact

This will require another PR in https://github.com/fluxcd/pkg/pull/352

Signed-off-by: Adrien Fillon <adrien.fillon@manomano.com>
2022-09-12 12:08:47 +02:00
..
2020-12-14 16:47:46 +01:00
2020-10-29 16:31:32 +01:00
2022-01-10 16:30:38 +01:00
2022-01-10 16:30:38 +01:00
2020-12-14 16:47:46 +01:00
2022-01-10 16:30:38 +01:00
2020-12-14 16:47:46 +01:00
2022-01-10 16:30:38 +01:00
2022-01-10 16:30:38 +01:00
2020-12-14 16:47:46 +01:00
2022-08-09 12:45:00 +03:00