Using prebuilt image
Prebuilt images setting is a noop in the new pipeline, once you finished migration this can be removed.
By default the deployment pipeline builds an image from the Dockerfile in your repository. If it is already built during the CI steps you can skip this additional building in the deployment process to reduce the time of your deployment.
Steps:
- set
usePrebuiltImage: truein your gap.yaml - your build needs to push an image to
eu.gcr.io/ems-gap-images/<image-name> - if your image does not conform to the name of
eu.gcr.io/ems-gap-images/<my-application-name>(same as thenameproperty in yourgap.yaml) you need to set theimageproperty in thegap.yamlto the full name you have published your image.
To prevent application code updates without CI runs, the build tool adds the sha checksum of the current image with that tag to the image used on the cluster.
The area deploy user - which is used already in the CI configurations to trigger the deployment - should be used to push the docker image into the Container Registry.