diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c9b3335..6e7c879 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -42,6 +42,7 @@ jobs: type=ref,event=pr type=semver,pattern={{version}} type=semver,pattern={{major}}.{{minor}} + type=raw,value=latest,enable=${{ github.event_name == 'release' }} - # https://github.com/actions/cache name: Cache Docker layers uses: actions/cache@v4 diff --git a/cmd/serve.go b/cmd/serve.go index bed2b6b..00ed86a 100644 --- a/cmd/serve.go +++ b/cmd/serve.go @@ -4,6 +4,7 @@ import ( "context" "fmt" "os" + "path/filepath" "github.com/Maronato/go-finger/internal/config" "github.com/Maronato/go-finger/internal/fingerreader" @@ -12,7 +13,7 @@ import ( "github.com/peterbourgon/ff/v4" ) -const appName = "finger" +var appName = filepath.Base(os.Args[0]) func newServerCmd(cfg *config.Config) *ff.Command { return &ff.Command{