Skip to content

Commit

Permalink
EXUI-266: Configure github action to update preview deployment id
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Elliott authored and Tom Elliott committed Aug 17, 2023
1 parent c967db0 commit f7077eb
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/populate-preview-deployment-id.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,12 @@ jobs:
## Move to root
cd ${CHART_DIRECTORY}
CHART_VERSION=$(cat "${CHART_DIRECTORY}/charts/xui-webapp/Chart.yaml" | grep ^version | cut -d ':' -f 2 | sed -e 's/^[[:space:]]*//')
NEW_VERSION=$(echo $CHART_VERSION | awk -F. '{$NF = $NF + 1;} 1' | sed 's/ /./g' )
sed -i -e "s/^PREVIEW_DEPLOYMENT_ID:.*/PREVIEW_DEPLOYMENT_ID: exui-preview-deployment-$NEW_VERSION/" "${CHART_DIRECTORY}/charts/xui-webapp/values.preview.template.yaml"
sed -i -e "s/^PREVIEW_DEPLOYMENT_ID:.*/PREVIEW_DEPLOYMENT_ID: exui-preview-deployment-BRANCH_PR_NUMBER/" "${CHART_DIRECTORY}/charts/xui-webapp/values.preview.template.yaml"
exit 1
env:
chartPath: ${{ parameters.chartPath }} # TODO: sort out correct path
chartPath: ${{ github.workspace }}
chartBranch: ${{ github.ref }}
branchPrNumber: ${{ github.event.number }}
- name: Commit
Expand Down

0 comments on commit f7077eb

Please sign in to comment.