|
|
|
@ -44,8 +44,8 @@ import (
|
|
|
|
|
var pushArtifactCmd = &cobra.Command{
|
|
|
|
|
Use: "artifact",
|
|
|
|
|
Short: "Push artifact",
|
|
|
|
|
Long: withPreviewNote(`The push artifact command creates a tarball from the given directory or the single file and uploads the artifact to an OCI repository.
|
|
|
|
|
The command can read the credentials from '~/.docker/config.json' but they can also be passed with --creds. It can also login to a supported provider with the --provider flag.`),
|
|
|
|
|
Long: `The push artifact command creates a tarball from the given directory or the single file and uploads the artifact to an OCI repository.
|
|
|
|
|
The command can read the credentials from '~/.docker/config.json' but they can also be passed with --creds. It can also login to a supported provider with the --provider flag.`,
|
|
|
|
|
Example: ` # Push manifests to GHCR using the short Git SHA as the OCI artifact tag
|
|
|
|
|
echo $GITHUB_PAT | docker login ghcr.io --username flux --password-stdin
|
|
|
|
|
flux push artifact oci://ghcr.io/org/config/app:$(git rev-parse --short HEAD) \
|
|
|
|
|