keptn send event new-artifact

keptn send event new-artifact

Sends a new-artifact event to Keptn in order to deploy a new artifact for the specified service in the provided project

Synopsis

Sends a new-artifact event to Keptn in order to deploy a new artifact for the specified service in the provided project. Therefore, this command takes the project, service, image, and tag of the new artifact.

The artifact is the name of a Docker image, which can be located at Docker Hub, Quay, or any other registry storing docker images. The new artifact is pushed in the first stage specified in the projects shipyard.yaml file. Afterwards, Keptn takes care of deploying this new artifact to the other stages.

Furthermore, please note that the value provided in the image flag has to contain the full path to your Docker registry. The only exception is docker.io because this is the default in Kubernetes and, hence, can be omitted.

Note: This command does not send the actual Docker image to Keptn, just the image name and tag. Instead, Keptn uses Kubernetes functionalities for pulling this image. For pulling an image from a private registry, we would like to refer to the Kubernetes documentation (https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/).

keptn send event new-artifact [flags]

Examples

keptn send event new-artifact --project=sockshop --service=carts --image=docker.io/keptnexamples/carts --tag=0.7.0

Options

  -h, --help             help for new-artifact
      --image string     The image name, e.g.docker.io/YOUR_ORG/YOUR_IMAGE or quay.io/YOUR_ORG/YOUR_IMAGE. Optionally, you can directly append the tag using ":YOUR_TAG"
      --project string   The project containing the service which will be new deployed
      --service string   The service which will be new deployed
      --tag string       The tag of the image. If no tag is specified, the "latest" tag is used.

Options inherited from parent commands

      --mock                 mocking of server communication - ATTENTION: your commands will not be sent to the keptn server
  -q, --quiet                suppress debug and info output
      --suppress-websocket   disables websocket communication - use the ID of Keptn context (if provided) for checking the result of your command
  -v, --verbose              verbose logging

SEE ALSO

Auto generated by spf13/cobra on 29-Apr-2020