Skip to content

Commit

Permalink
fix: driver version not updated on tagged release (#328)
Browse files Browse the repository at this point in the history
This version of the driver was not updated on new releases.
This causes the user-agent to include the old version.
  • Loading branch information
apricote authored Nov 21, 2022
1 parent 73bc5ce commit 22af0ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/publish_on_tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ jobs:
OWNER: ${{ github.repository_owner }}
run: |
sed -i -e "s#: .*/hcloud-csi-driver:latest#: $OWNER/hcloud-csi-driver:$RELEASE_VERSION#" deploy/kubernetes/hcloud-csi.yml
sed -i -e "s/PluginVersion = \".*\"$/PluginVersion = \"$RELEASE_VERSION\"/g" driver/driver.go
git config user.name github-actions
git config user.email [email protected]
git add .
git commit -m "Update image tags in hcloud-csi.yml to $RELEASE_VERSION"
git commit -m "Update version tags to $RELEASE_VERSION"
git tag -d v$RELEASE_VERSION
git tag v$RELEASE_VERSION
git push origin v$RELEASE_VERSION -f
Expand Down
6 changes: 0 additions & 6 deletions script/updateversion.bash

This file was deleted.

0 comments on commit 22af0ce

Please sign in to comment.