Stamp the tag or short commit in a plain docker build (closes #166)
check / check (push) Successful in 3m45s
check / check (push) Successful in 3m45s
.dockerignore now lets .git into the build context, without .git/config, which can hold a remote URL with a credential. ARG VERSION has no default: given none, the build stage takes the version from git describe --tags --always, and fails if the context carries .git and no version comes out. pixad now logs its name, version and architecture as its first log line, through the existing Logger.Identify, which nothing called. Model: opus-5-5
This commit is contained in:
+4
-1
@@ -56,6 +56,9 @@ func run(_ *cobra.Command, _ []string) {
|
||||
middleware.New,
|
||||
healthcheck.New,
|
||||
),
|
||||
fx.Invoke(func(*server.Server) {}),
|
||||
fx.Invoke(
|
||||
func(log *logger.Logger) { log.Identify() },
|
||||
func(*server.Server) {},
|
||||
),
|
||||
).Run()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user