File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -372,12 +372,16 @@ jobs:
372372 # We just need to update the image tag in the Helm values file.
373373 run : |
374374 set -euo pipefail
375+ VALUES_FILE="oss/charts/v2/airbyte/values.yaml"
375376 # Get the current manifest-server tag from the values.yaml file
376- PREVIOUS_VERSION=$(grep -A2 " manifestServer:" oss/charts/v2/airbyte/values.yaml | grep "tag:" | sed 's/.* tag: //' )
377+ PREVIOUS_VERSION=$(yq '. manifestServer.image. tag' "$VALUES_FILE" )
377378 echo "Previous version: ${PREVIOUS_VERSION}"
378379 echo "New version: ${VERSION}"
379380 # Update the manifest-server tag in the Helm values file
380- sed -i "s/tag: ${PREVIOUS_VERSION}/tag: ${VERSION}/g" "oss/charts/v2/airbyte/values.yaml"
381+ yq -i ".manifestServer.image.tag = \"${VERSION}\"" "$VALUES_FILE"
382+ # Also update the CDK version in the manifest-server-api build file
383+ sed -i "s/refs\/tags\/v${PREVIOUS_VERSION}/refs\/tags\/v${VERSION}/g" "oss/airbyte-api/manifest-server-api/build.gradle.kts"
384+ echo ${VERSION} > oss/airbyte-connector-builder-resources/CDK_VERSION
381385 - name : Create Pull Request
382386 id : create-pull-request
383387 uses : peter-evans/create-pull-request@v7
You can’t perform that action at this time.
0 commit comments