mirror of
https://github.com/Maronato/go-finger.git
synced 2026-05-05 20:36:15 +02:00
fix: derive binary name from argv and add latest Docker tag on release
This commit is contained in:
parent
afb1847ba2
commit
526ea73fa6
1
.github/workflows/release.yml
vendored
1
.github/workflows/release.yml
vendored
@ -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
|
||||
|
||||
@ -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{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user