Skip to content

Commit

Permalink
cherry-pick(workflow): replace ci tag with regex in release workflow (#…
Browse files Browse the repository at this point in the history
…343)


Signed-off-by: Akhil Mohan <[email protected]>
  • Loading branch information
akhilerm authored Jun 11, 2021
1 parent 11e4ba3 commit a588775
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,17 +66,18 @@ jobs:
- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
git config user.name "GitHub Actions"
git config user.email "[email protected]"
- name: Update Operator YAML
if: "!github.event.release.prerelease"
run: |
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/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/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/zfs-driver:.*/zfs-driver:${RELEASE_TAG}/" deploy/yamls/zfs-driver.yaml
sed -i "s/openebs.io\/version:.*/openebs.io\/version: ${RELEASE_TAG}/" deploy/yamls/zfs-driver.yaml
sed -i "s/zfs-driver:.*/zfs-driver:${RELEASE_TAG}/" deploy/zfs-operator.yaml
sed -i "s/openebs.io\/version:.*/openebs.io\/version: ${RELEASE_TAG}/" deploy/zfs-operator.yaml
sed -i "s/newTag:.*/newTag: ${RELEASE_TAG}/" deploy/yamls/kustomization.yaml
git diff --quiet deploy/ || CHANGED=$?
if [[ $CHANGED -ne 0 ]]; then
Expand Down

0 comments on commit a588775

Please sign in to comment.