diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a5fb1e1..9b8f8c7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,7 +9,8 @@ jobs: - env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SRM_DEVOPS_DEPLOY_KEY: ${{ secrets.SRM_DEVOPS_DEPLOY_KEY }} - IMAGE_NAME: srm-api + IMAGE_NAME: srm-frontend + CHART_NAME: site run: | BUILD_ARGS="" if docker pull "ghcr.io/whiletrue-industries/${IMAGE_NAME}:latest"; then @@ -29,8 +30,8 @@ jobs: git config --global user.name "srm-devops CI" &&\ git config --global user.email "srm-devops-ci@localhost" &&\ cd srm-devops &&\ - bin/update_yaml.py '{"api":{"image":"'"ghcr.io/whiletrue-industries/${IMAGE_NAME}:${GITHUB_SHA}"'"}}' helm/api/values.auto-updated.yaml &&\ - git add helm/api/values.auto-updated.yaml &&\ - git commit -m "update api helm chart auto updated values image" &&\ + bin/update_yaml.py '{"'"${CHART_NAME}"'":{"image":"'"ghcr.io/whiletrue-industries/${IMAGE_NAME}:${GITHUB_SHA}"'"}}' "helm/${CHART_NAME}/values.auto-updated.yaml" &&\ + git add "helm/${CHART_NAME}/values.auto-updated.yaml" &&\ + git commit -m "update ${CHART_NAME} helm chart auto updated values image" &&\ git push origin main - fi + fi \ No newline at end of file