Im using github actions to deploy helm chart on eks. Here are steps:
- Build the docker image
- Push an image to ECR with git commit sha as tag.(Tag Ex: develop-21df036.... )
So i want reference this tag in helm
values.yaml
here as
repository:1234.dcr.ecr.eu-west-1.amazonaws.com/repo-name
pullPolicy: Always
# Overrides the image tag whose default is the chart appVersion.
tag: <tag>
so i tried with develop-${{ github.sha }}
variable in tag, but this commit id will get once pushed to repo. Is there any other way to achieve this ?
Thanks