fix: derive binary name from argv and add latest Docker tag on release

This commit is contained in:
Claude 2026-03-08 03:32:35 +00:00
parent afb1847ba2
commit 526ea73fa6
No known key found for this signature in database
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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{