|
80 | 80 | chart_oci_ref: ${{ steps.config.outputs.chart_oci_ref }} |
81 | 81 | tag_calculation_mode: ${{ steps.config.outputs.tag_calculation_mode }} |
82 | 82 | branch_prefix: ${{ steps.config.outputs.branch_prefix }} |
| 83 | + seed_channel_name: ${{ steps.config.outputs.seed_channel_name }} |
| 84 | + seed_channel_id: ${{ steps.config.outputs.seed_channel_id }} |
| 85 | + seed_chart_oci_ref: ${{ steps.config.outputs.seed_chart_oci_ref }} |
| 86 | + version_prefix: ${{ steps.config.outputs.version_prefix }} |
83 | 87 | steps: |
84 | 88 | - name: Checkout code |
85 | 89 | uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 |
@@ -131,7 +135,8 @@ jobs: |
131 | 135 | outputs: |
132 | 136 | release_tag: ${{ steps.retag.outputs.release_tag }} |
133 | 137 | retagged_images: ${{ steps.retag.outputs.retagged_images }} |
134 | | - current_version: ${{ steps.calculate_release_tag.outputs.replicated_current_version }} |
| 138 | + current_version: ${{ steps.calculate_version.outputs.current }} |
| 139 | + new_version: ${{ steps.calculate_version.outputs.new }} |
135 | 140 | env: |
136 | 141 | IMAGE_REPOS: "apollo frontend apollo-db-init thermos thermos-db-init mercury weaviate thermos-toolkit-registry" |
137 | 142 | # Per-repo ECR source tags (manual runs only; empty on schedule). Empty = use "latest". |
@@ -193,8 +198,21 @@ jobs: |
193 | 198 | RELEASE_CHANNEL_NAME: ${{ needs.release-config.outputs.channel_name }} |
194 | 199 | RELEASE_CHANNEL_ID: ${{ needs.release-config.outputs.channel_id }} |
195 | 200 | TAG_CALCULATION_MODE: ${{ needs.release-config.outputs.tag_calculation_mode }} |
| 201 | + SEED_CHANNEL_NAME: ${{ needs.release-config.outputs.seed_channel_name }} |
| 202 | + SEED_CHANNEL_ID: ${{ needs.release-config.outputs.seed_channel_id }} |
| 203 | + SEED_CHART_OCI_REF: ${{ needs.release-config.outputs.seed_chart_oci_ref }} |
196 | 204 | run: bash ./.github/scripts/calculate-nightly-release-tag.sh |
197 | 205 |
|
| 206 | + - name: Calculate and validate release version |
| 207 | + id: calculate_version |
| 208 | + shell: bash |
| 209 | + env: |
| 210 | + RELEASE_TYPE: ${{ needs.release-config.outputs.release_type }} |
| 211 | + RELEASE_CHANNEL_NAME: ${{ needs.release-config.outputs.channel_name }} |
| 212 | + CURRENT_VERSION: ${{ steps.calculate_release_tag.outputs.replicated_current_version }} |
| 213 | + VERSION_PREFIX: ${{ needs.release-config.outputs.version_prefix }} |
| 214 | + run: bash ./.github/scripts/calculate-release-version.sh |
| 215 | + |
198 | 216 | - name: Determine AWS Assume Role ARN |
199 | 217 | id: env |
200 | 218 | run: | |
@@ -366,8 +384,8 @@ jobs: |
366 | 384 | id-token: write |
367 | 385 | outputs: |
368 | 386 | branch_name: ${{ steps.branch.outputs.branch_name }} |
369 | | - previous_version: ${{ steps.version.outputs.current }} |
370 | | - version: ${{ steps.version.outputs.new }} |
| 387 | + previous_version: ${{ needs.retag-latest-images.outputs.current_version }} |
| 388 | + version: ${{ needs.retag-latest-images.outputs.new_version }} |
371 | 389 | steps: |
372 | 390 | - name: Checkout code |
373 | 391 | uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 |
@@ -425,33 +443,17 @@ jobs: |
425 | 443 | run: | |
426 | 444 | helm template composio ./composio |
427 | 445 |
|
428 | | - - name: Get and bump version |
429 | | - id: version |
430 | | - run: | |
431 | | - set -euo pipefail |
432 | | - CURRENT_APPVERSION="${{ needs.retag-latest-images.outputs.current_version }}" |
433 | | - if [[ ! "${CURRENT_APPVERSION}" =~ ^[0-9]+([.][0-9]+)*$ ]]; then |
434 | | - echo "${{ needs.release-config.outputs.channel_name }} channel returned an invalid currentVersion: ${CURRENT_APPVERSION:-<empty>}" >&2 |
435 | | - exit 1 |
436 | | - fi |
437 | | -
|
438 | | - NEW_APPVERSION="$(echo "${CURRENT_APPVERSION}" | awk -F. '{$NF = $NF + 1} 1' OFS=.)" |
439 | | - echo "current=${CURRENT_APPVERSION}" >> "${GITHUB_OUTPUT}" |
440 | | - echo "new=${NEW_APPVERSION}" >> "${GITHUB_OUTPUT}" |
441 | | - echo "Current version: ${CURRENT_APPVERSION}" |
442 | | - echo "New version: ${NEW_APPVERSION}" |
443 | | -
|
444 | 446 | - name: Update Chart.yaml versions |
445 | 447 | run: | |
446 | 448 | cd ./composio |
447 | | - export NEW_VERSION="${{ steps.version.outputs.new }}" |
| 449 | + export NEW_VERSION="${{ needs.retag-latest-images.outputs.new_version }}" |
448 | 450 | yq eval -i '.appVersion = strenv(NEW_VERSION)' ./Chart.yaml |
449 | 451 | yq eval -i '.version = strenv(NEW_VERSION)' ./Chart.yaml |
450 | 452 | echo "Updated Chart.yaml" |
451 | 453 |
|
452 | 454 | - name: Update manifest versions |
453 | 455 | run: | |
454 | | - export NEW_VERSION="${{ steps.version.outputs.new }}" |
| 456 | + export NEW_VERSION="${{ needs.retag-latest-images.outputs.new_version }}" |
455 | 457 | export RELEASE_TAG="${{ needs.retag-latest-images.outputs.release_tag }}" |
456 | 458 |
|
457 | 459 | cd ./composio |
@@ -494,7 +496,7 @@ jobs: |
494 | 496 | replicated release create \ |
495 | 497 | --yaml-dir manifests \ |
496 | 498 | --promote "${{ needs.release-config.outputs.channel_name }}" \ |
497 | | - --version "${{ steps.version.outputs.new }}" |
| 499 | + --version "${{ needs.retag-latest-images.outputs.new_version }}" |
498 | 500 |
|
499 | 501 | - name: Push release branch |
500 | 502 | if: success() |
|
0 commit comments