Skip to content

Commit 797a969

Browse files
authored
Merge pull request #56 from CodeShellDev/dev
feat: Print Image Tag on Startup
2 parents 8a8df7c + d9b7b35 commit 797a969

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

main.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ func main() {
2121

2222
log.Init(logLevel)
2323

24+
docker.Init()
25+
2426
config.Load()
2527

2628
ENV = config.ENV

utils/docker/docker.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ import (
1313

1414
var stop chan os.Signal
1515

16+
func Init() {
17+
log.Info("Running ", os.Getenv("IMAGE_TAG"), " Image")
18+
}
19+
1620
func Run(main func()) chan os.Signal {
1721
stop = make(chan os.Signal, 1)
1822
signal.Notify(stop, syscall.SIGINT, syscall.SIGTERM)

0 commit comments

Comments
 (0)