I have two applications (identity and API) in a single repository. I have set up in a CI/CD pipeline to deploy them to kubernetes; the images are building fine.
How can I structure the kustomization.yaml
file to deploy the image edits without updating the images with wrong data? I noticed the two apps are pointing to the same image.
jobs:
identity-job:
...
./kustomize edit set image gcr.io/PROJECT_ID/IMAGE:TAG=gcr.io/$PROJECT_ID/$IDSIMAGE:$GITHUB_SHA
./kustomize build . | kubectl apply -f -
api-job:
...
./kustomize edit set image gcr.io/PROJECT_ID/IMAGE:TAG=gcr.io/$PROJECT_ID/$APIIMAGE:$GITHUB_SHA
./kustomize build . | kubectl apply -f -