mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 13:46:43 +00:00
test: add Docker build test workflow for PR validation (#33)
* test: add Docker build test workflow for PR validation * fix: use dockerx command without upload flag for testing * testing docker upload * nit * bet * remove
This commit is contained in:
parent
3058f19298
commit
6a308e75b8
2 changed files with 8 additions and 2 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -59,3 +59,6 @@ cmd/workload/workload
|
|||
|
||||
# claude
|
||||
.claude
|
||||
|
||||
# for testing docker builds
|
||||
.github/workflows/docker-test.yml
|
||||
|
|
|
|||
|
|
@ -174,11 +174,14 @@ func LocalEnv() Environment {
|
|||
if info, err := os.Stat(".git/objects"); err == nil && info.IsDir() && env.Tag == "" {
|
||||
// Try to get tag at HEAD first
|
||||
env.Tag = firstLine(RunGit("tag", "-l", "--points-at", "HEAD"))
|
||||
// If no tag points at HEAD, get the most recent tag
|
||||
// If no tag points at HEAD, try to get the most recent tag
|
||||
if env.Tag == "" {
|
||||
// Check if there are any tags at all before trying git describe
|
||||
if tags := RunGit("tag", "-l"); tags != "" {
|
||||
env.Tag = firstLine(RunGit("describe", "--tags", "--abbrev=0"))
|
||||
}
|
||||
}
|
||||
}
|
||||
return env
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue