0

我使用 github 操作在 eks 上部署 helm chart。以下是步骤:

  1. 构建 docker 镜像
  2. 使用 git commit sha 作为标签将图像推送到 ECR。(标签例如:develop-21df036....)所以我想在 helm 中引用这个标签values.yaml作为
  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> 

所以我尝试develop-${{ github.sha }}在标签中使用变量,但是这个提交 ID 将被推送到 repo。有没有其他方法可以实现这一目标?谢谢

4

0 回答 0