diff --git a/internal/build/env.go b/internal/build/env.go
index 3f63239ca1134ff8f986a7bb99d98bf11333466c..cd33550921a9e232efa469bea89541e40ab6e5fc 100644
--- a/internal/build/env.go
+++ b/internal/build/env.go
@@ -65,7 +65,7 @@ func Env() Environment {
 			Repo:          os.Getenv("APPVEYOR_REPO_NAME"),
 			Commit:        os.Getenv("APPVEYOR_REPO_COMMIT"),
 			Branch:        os.Getenv("APPVEYOR_REPO_BRANCH"),
-			Tag:           os.Getenv("APPVEYOR_REPO_TAG"),
+			Tag:           os.Getenv("APPVEYOR_REPO_TAG_NAME"),
 			Buildnum:      os.Getenv("APPVEYOR_BUILD_NUMBER"),
 			IsPullRequest: os.Getenv("APPVEYOR_PULL_REQUEST_NUMBER") != "",
 		}