Skip to content

Commit cfe4edf

Browse files
committed
differences
1 parent a187917 commit cfe4edf

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/gitops-pipeline.yaml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ jobs:
3535
charts: ${{ steps.chart-filter.outputs.changes }}
3636
image_tag: ${{ steps.gen-image-tag.outputs.image_tag }}
3737
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 }}
3840
steps:
3941
- uses: actions/checkout@v5
4042
with:
@@ -60,6 +62,13 @@ jobs:
6062
prefix="dev-"
6163
fi
6264
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
6372
6473
dockerfiles-validation:
6574
needs: [ prepare-build ]
@@ -127,8 +136,11 @@ jobs:
127136
build-tags: |
128137
latest
129138
${{ needs.prepare-build.outputs.image_tag }}
139+
${{ needs.prepare-build.outputs.service_version }}
130140
build-context: ${{ steps.load-config.outputs.CONTAINER_CONTEXT }}
131141
container-file: ${{ steps.get-image-config.outputs.CONTAINER_FILE }}
142+
build-args: |
143+
BRICKS_VERSION=${{ needs.prepare-build.outputs.service_version }}
132144
133145
helm-charts-build:
134146
runs-on:
@@ -231,7 +243,7 @@ jobs:
231243
with:
232244
images: ${{ needs.prepare-build.outputs.images }}
233245
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 }}
235247

236248
create-auto-merge-prod-pr:
237249
needs: [ prepare-build, build-helmreleases, promote-to-stable ]

0 commit comments

Comments
 (0)