|
35 | 35 | charts: ${{ steps.chart-filter.outputs.changes }} |
36 | 36 | image_tag: ${{ steps.gen-image-tag.outputs.image_tag }} |
37 | 37 | pipeline_identifier: ${{ github.run_id }} |
| 38 | + service_version: ${{ steps.read-version.outputs.service_version }} |
| 39 | + service_major_version: ${{ steps.read-version.outputs.service_major_version }} |
38 | 40 | steps: |
39 | 41 | - uses: actions/checkout@v5 |
40 | 42 | with: |
|
60 | 62 | prefix="dev-" |
61 | 63 | fi |
62 | 64 | echo "image_tag=${prefix}${hash}" >> $GITHUB_OUTPUT |
| 65 | + - name: Read service version |
| 66 | + id: read-version |
| 67 | + run: | |
| 68 | + version=$(cat VERSION | tr -d '\n') |
| 69 | + echo "service_version=$version" >> $GITHUB_OUTPUT |
| 70 | + major=$(echo "$version" | cut -d. -f1) |
| 71 | + echo "service_major_version=M$major" >> $GITHUB_OUTPUT |
63 | 72 |
|
64 | 73 | dockerfiles-validation: |
65 | 74 | needs: [ prepare-build ] |
@@ -127,8 +136,11 @@ jobs: |
127 | 136 | build-tags: | |
128 | 137 | latest |
129 | 138 | ${{ needs.prepare-build.outputs.image_tag }} |
| 139 | + ${{ needs.prepare-build.outputs.service_version }} |
130 | 140 | build-context: ${{ steps.load-config.outputs.CONTAINER_CONTEXT }} |
131 | 141 | container-file: ${{ steps.get-image-config.outputs.CONTAINER_FILE }} |
| 142 | + build-args: | |
| 143 | + BRICKS_VERSION=${{ needs.prepare-build.outputs.service_version }} |
132 | 144 |
|
133 | 145 | helm-charts-build: |
134 | 146 | runs-on: |
@@ -231,7 +243,7 @@ jobs: |
231 | 243 | with: |
232 | 244 | images: ${{ needs.prepare-build.outputs.images }} |
233 | 245 | charts: ${{ needs.build-helmreleases.outputs.built_charts }} |
234 | | - image_tag: ${{ needs.prepare-build.outputs.image_tag }} |
| 246 | + image_tag: ${{ needs.prepare-build.outputs.service_major_version }} |
235 | 247 |
|
236 | 248 | create-auto-merge-prod-pr: |
237 | 249 | needs: [ prepare-build, build-helmreleases, promote-to-stable ] |
|
0 commit comments