fix(version): auto update the version label in the operator yaml (#340)

Signed-off-by: Pawan <pawan@mayadata.io>
This commit is contained in:
Pawan Prakash Sharma 2021-06-09 15:23:30 +05:30 committed by GitHub
parent 7e211d105a
commit 53f872fcf1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -73,7 +73,9 @@ jobs:
run: | run: |
echo "update the operator yaml with the image tag" echo "update the operator yaml with the image tag"
sed -i "s/zfs-driver:ci/zfs-driver:${RELEASE_TAG}/" deploy/yamls/zfs-driver.yaml sed -i "s/zfs-driver:ci/zfs-driver:${RELEASE_TAG}/" deploy/yamls/zfs-driver.yaml
sed -i "s/openebs.io\/version: ci/openebs.io\/version: ${RELEASE_TAG}/" deploy/yamls/zfs-driver.yaml
sed -i "s/zfs-driver:ci/zfs-driver:${RELEASE_TAG}/" deploy/zfs-operator.yaml sed -i "s/zfs-driver:ci/zfs-driver:${RELEASE_TAG}/" deploy/zfs-operator.yaml
sed -i "s/openebs.io\/version: ci/openebs.io\/version: ${RELEASE_TAG}/" deploy/zfs-operator.yaml
sed -i "s/newTag: ci/newTag: ${RELEASE_TAG}/" deploy/yamls/kustomization.yaml sed -i "s/newTag: ci/newTag: ${RELEASE_TAG}/" deploy/yamls/kustomization.yaml
git diff --quiet deploy/ || CHANGED=$? git diff --quiet deploy/ || CHANGED=$?