Skip to content

Commit

Permalink
feat: align image version with version file
Browse files Browse the repository at this point in the history
Signed-off-by: Chin-Ya Huang <[email protected]>
  • Loading branch information
c3y1huang committed Jul 11, 2024
1 parent 980da35 commit 9676aba
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dapper/version
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ GIT_TAG=$(git tag -l --contains HEAD | head -n 1)
if [[ -z "$DIRTY" && -n "$GIT_TAG" ]]; then
VERSION=$GIT_TAG
else
VERSION="${COMMIT}${DIRTY}"
VERSION=$(cat $(dirname $0)/../version)
fi

GITCOMMIT=$(git rev-parse HEAD)
Expand Down
12 changes: 10 additions & 2 deletions pkg/consts/longhornctl.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
package consts

import (
"fmt"

"github.com/longhorn/cli/meta"
)

const (
ImageBciBase = "registry.suse.com/bci/bci-base:15.5"
ImagePause = "registry.k8s.io/pause:3.1"
)

ImageEngine = "longhornio/longhorn-engine:master-head"
ImageLonghornctl = "longhornio/longhornctl:master-head"
var (
ImageEngine = fmt.Sprintf("longhornio/longhorn-engine:%s", meta.Version)
ImageLonghornctl = fmt.Sprintf("longhornio/longhornctl:%s", meta.Version)
)

const (
Expand Down

0 comments on commit 9676aba

Please sign in to comment.