File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -119,7 +119,8 @@ apply() {
119
119
sed -i.bak -e " /loadBalancerIP/s/192\.168\.56/${LB_NETWORK} /" $TMP_DIR /agent-autonomous/redis-service.yaml
120
120
fi
121
121
122
- LATEST_RELEASE_TAG=` curl -s " https://api.github.com/repos/argoproj/argo-cd/releases/latest" | jq -r .tag_name`
122
+ # Get the most recent version of Argo CD from the releases page
123
+ LATEST_RELEASE_TAG=` curl -s " https://api.github.com/repos/argoproj/argo-cd/releases" | jq -r ' .[].tag_name' | grep -E ' ^v[0-9]+\.[0-9]+\.[0-9]+$' | sort -V | tail -1`
123
124
sed -i.bak -e " s/LatestReleaseTag/${LATEST_RELEASE_TAG} /" $TMP_DIR /control-plane/kustomization.yaml
124
125
sed -i.bak -e " s/LatestReleaseTag/${LATEST_RELEASE_TAG} /" $TMP_DIR /agent-autonomous/kustomization.yaml
125
126
sed -i.bak -e " s/LatestReleaseTag/${LATEST_RELEASE_TAG} /" $TMP_DIR /agent-managed/kustomization.yaml
You can’t perform that action at this time.
0 commit comments