diff --git a/.github/workflows/build-and-push-dev-image.yml b/.github/workflows/build-and-push-dev-image.yml
index 0d97b9d0dc972..95c6c7979016b 100644
--- a/.github/workflows/build-and-push-dev-image.yml
+++ b/.github/workflows/build-and-push-dev-image.yml
@@ -6,7 +6,7 @@ on:
- "main"
jobs:
- docker:
+ build-and-push-dev-image:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
diff --git a/.github/workflows/build-and-push-release-image.yml b/.github/workflows/build-and-push-release-image.yml
index 3775132f34095..ce2c2639a8248 100644
--- a/.github/workflows/build-and-push-release-image.yml
+++ b/.github/workflows/build-and-push-release-image.yml
@@ -7,7 +7,7 @@ on:
- "release/v*.*.*"
jobs:
- docker:
+ build-and-push-release-image:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
diff --git a/README.md b/README.md
index 13a4f4258e73a..8caa62304fe52 100644
--- a/README.md
+++ b/README.md
@@ -30,7 +30,7 @@
## ⚓️ Deploy with Docker
```docker
-docker run --name memos --publish 8080:8080 --volume ~/.memos/:/var/opt/memos -e mode=prod neosmemo/memos:0.0.1
+docker run --name memos --publish 5230:8080 --volume ~/.memos/:/var/opt/memos -e mode=prod neosmemo/memos:0.0.1
```
If the `~/.memos/` does not have a `memos_prod.db` file, then `memos` will auto generate it.
@@ -45,7 +45,7 @@ Memos is built with a curated tech stack. It is optimized for developer experien
### Tech Stack
-
+
### Prerequisites
diff --git a/VERSION b/VERSION
deleted file mode 100644
index 8a9ecc2ea99d6..0000000000000
--- a/VERSION
+++ /dev/null
@@ -1 +0,0 @@
-0.0.1
\ No newline at end of file
diff --git a/common/profile.go b/common/profile.go
index 36f010a084d4f..845bc1f20d541 100644
--- a/common/profile.go
+++ b/common/profile.go
@@ -40,20 +40,6 @@ func checkDSN(dataDir string) (string, error) {
return dataDir, nil
}
-func getSystemVersion() string {
- absPath, err := filepath.Abs("./VERSION")
- if err != nil {
- return "0.0.0"
- }
-
- data, err := os.ReadFile(absPath)
- if err != nil {
- return "0.0.0"
- }
-
- return string(data)
-}
-
// GetDevProfile will return a profile for dev.
func GetProfile() *Profile {
mode := os.Getenv("mode")
@@ -79,12 +65,10 @@ func GetProfile() *Profile {
dsn := fmt.Sprintf("%s/memos_%s.db", dataDir, mode)
- version := getSystemVersion()
-
return &Profile{
Mode: mode,
Port: port,
DSN: dsn,
- Version: version,
+ Version: Version,
}
}
diff --git a/common/version.go b/common/version.go
new file mode 100644
index 0000000000000..a66f05aac4030
--- /dev/null
+++ b/common/version.go
@@ -0,0 +1,4 @@
+package common
+
+// Version is the service current released version.
+var Version = "0.0.1"