Update image tag for the codefresh-guestbook application

You will now make a change in the application manifest, and update the image tag. Because Codefresh selected auto-sync in the application settings, Argo CD detects that the live state in the cluster is out of sync with the desired state in Git, and initiates the new rollout. The rollout runs the analysis template you defined (background-analysis in the quick start).

Before you begin

Create the codefresh-guestbook application

Update image tag in rollout.yaml

Update the image tag in the codefresh-guestbook application.

  1. Go to the Git repo with rollout.yaml.
  2. Update the image tag from 0.1 to 0.2 as in the example below.
...
template:
  metadata:
    labels:
      app: codefresh-guestbook
  spec:
    containers:
      - image: gcr.io/heptio-images/ks-guestbook-demo:0.2
        name: codefresh-guestbook
        ports:
          - name: http
            containerPort: 80
            protocol: TCP
...
  1. Commit the change.

View the rollout in the Applications dashboard

When the image tag is updated, the auto-sync initiates the rollout.

  1. Go back to the Applications dashboard.
  2. Select the application you created.
    The deployment entry for the application is displayed as progressing.

Application dashboard with rollout in progress

Application dashboard with rollout in progress
  1. To visualize the rollout analysis, click the rollout name.

Rollout analysis in progress

Rollout analysis in progress
  1. To view metric validation details, expand Background Analysis in the panel.

You have completed application deployment in Codefresh.