GCP manage kubernetes autodeploy image path

  docker, google-cloud-platform, kubernetes

In my project on GCP i setup an autmatedodeploy for a specific deploy on my kubernetes cluster, ath the end of procedure an image path like:

gcr.io/direct-variety-325450/cc-mirror:$COMMIT_SHA

was create.
If i see in my GCP "Container Registry" i se images wit tag like c15c5019183ded74814d570a9a33d2f95ecdfb32

Now my question is:
How can i in my deployment.yaml file specify the latest image name if there are no latest or other tag?

...
spec:
  containers:
    - name: django
      image: ????
...

if i put:

gcr.io/direct-variety-325450/cc-mirror:$COMMIT_SHA

or:

gcr.io/direct-variety-325450/cc-mirror

i get an Error:

Cannot download Image, Image does not exist

What i have to put into my image: entry of deployment.yaml?

So many thanks in advance
Manuel

Source: Docker Questions

LEAVE A COMMENT