Update image tag for the codefresh-guestbook application
You will now make a change in the application manifest, and update the image tag. Because we 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
Update image tag in rollout.yaml
Update the image tag in the
- Go to the Git repo with
- Update the image tag from
0.2as 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 ...
- Commit the change.
View the rollout in the Applications dashboard
When the image tag is updated, the auto-sync initiates the rollout.
- Go back to the Applications dashboard.
- Select the application you created.
The deployment entry for the application is displayed as progressing.
- To visualize the rollout analysis, click the rollout name.
- To view metric validation details, expand Background Analysis in the panel.
You have created and deployed an application in Codefresh.