Skip to content

Commit

Permalink
CI: update etl chart with subpart api
Browse files Browse the repository at this point in the history
  • Loading branch information
OriHoch committed Jul 19, 2021
1 parent dc7b057 commit e6992e3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SRM_DEVOPS_DEPLOY_KEY: ${{ secrets.SRM_DEVOPS_DEPLOY_KEY }}
IMAGE_NAME: srm-api
CHART_NAME: api
CHART_NAME: etl
CHART_SUBPART: api
run: |
if [[ "${GITHUB_REF}" =~ ^refs/tags/.* ]]; then
TAG_NAME="${GITHUB_REF/refs\/tags\//}"
Expand Down Expand Up @@ -41,9 +42,9 @@ jobs:
docker push "ghcr.io/whiletrue-industries/${IMAGE_NAME}:${TAG_NAME}-${GITHUB_SHA}" &&\
IMAGE="ghcr.io/whiletrue-industries/${IMAGE_NAME}:${TAG_NAME}-${GITHUB_SHA}"
fi &&\
bin/update_yaml.py '{"'"${CHART_NAME}"'":{"image":"'"${IMAGE}"'"}}' "${VALUES_AUTO_UPDATED_FILE}" &&\
bin/update_yaml.py '{"'"${CHART_SUBPART}"'":{"image":"'"${IMAGE}"'"}}' "${VALUES_AUTO_UPDATED_FILE}" &&\
git add "${VALUES_AUTO_UPDATED_FILE}" &&\
git commit -m "update image: ${VALUES_AUTO_UPDATED_FILE}" &&\
git commit -m "update ${CHART_SUBPART} image: ${VALUES_AUTO_UPDATED_FILE}" &&\
git push origin main
fi &&\
if [ "${GITHUB_REF}" == "refs/heads/main" ]; then
Expand Down

0 comments on commit e6992e3

Please sign in to comment.