-
Notifications
You must be signed in to change notification settings - Fork 347
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed the version bump during the release in deploy artifacts (#247)
Signed-off-by: Juraci Paixão Kröhling <[email protected]>
- Loading branch information
1 parent
fc10364
commit f233687
Showing
5 changed files
with
29 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,14 +12,32 @@ OPERATOR_VERSION=$(echo ${OPERATOR_VERSION} | grep -Po "([\d\.]+)") | |
TAG=${TAG:-"v${OPERATOR_VERSION}"} | ||
BUILD_IMAGE=${BUILD_IMAGE:-"${BASE_BUILD_IMAGE}:${OPERATOR_VERSION}"} | ||
|
||
sed "s~image: jaegertracing\/jaeger-operator\:.*~image: ${BUILD_IMAGE}~gi" -i deploy/operator.yaml | ||
sed "s~image: jaegertracing\/jaeger-operator\:.*~image: ${BUILD_IMAGE}~gi" -i deploy/operator-openshift.yaml | ||
# changes to deploy/operator.yaml | ||
sed "s~image: jaegertracing/jaeger-operator.*~image: ${BUILD_IMAGE}~gi" -i deploy/operator.yaml | ||
|
||
# changes to deploy/olm-catalog/jaeger.package.yaml | ||
sed "s/currentCSV: jaeger-operator.*/currentCSV: jaeger-operator.v${OPERATOR_VERSION}/gi" -i deploy/olm-catalog/jaeger.package.yaml | ||
|
||
# changes to deploy/olm-catalog/jaeger-operator.csv.yaml | ||
sed "s~containerImage: docker.io/jaegertracing/jaeger-operator.*~containerImage: docker.io/${BUILD_IMAGE}~gi" -i deploy/olm-catalog/jaeger-operator.csv.yaml | ||
sed "s/name: jaeger-operator\.v.*/name: jaeger-operator.v${OPERATOR_VERSION}/gi" -i deploy/olm-catalog/jaeger-operator.csv.yaml | ||
sed "s~image: jaegertracing/jaeger-operator.*~image: ${BUILD_IMAGE}~gi" -i deploy/olm-catalog/jaeger-operator.csv.yaml | ||
## there's a "version: v1alpha1" there somewhere... | ||
sed -E "s/version: ([0-9\.]+).*/version: ${OPERATOR_VERSION}/gi" deploy/olm-catalog/jaeger-operator.csv.yaml | ||
|
||
# changes to test/operator.yaml | ||
sed "s~image: jaegertracing/jaeger-operator.*~image: ${BUILD_IMAGE}~gi" -i test/operator.yaml | ||
|
||
git diff -s --exit-code | ||
if [[ $? == 0 ]]; then | ||
echo "No changes detected. Skipping." | ||
else | ||
git add deploy/operator.yaml deploy/operator-openshift.yaml | ||
git add \ | ||
deploy/operator.yaml \ | ||
deploy/olm-catalog/jaeger.package.yaml \ | ||
deploy/olm-catalog/jaeger-operator.csv.yaml \ | ||
test/operator.yaml | ||
|
||
git commit -qm "Release ${TAG}" --author="Jaeger Release <[email protected]>" | ||
git tag ${TAG} | ||
git push --repo=https://${GH_WRITE_TOKEN}@github.com/jaegertracing/jaeger-operator.git --tags | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
packageName: jaeger | ||
channels: | ||
- name: alpha | ||
currentCSV: jaeger-operator.v1.9.0 | ||
currentCSV: jaeger-operator.v1.10.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters