Skip to content

Commit

Permalink
Using grep to limit default NM_SRC_BUILD_TARGET to tags that match (#…
Browse files Browse the repository at this point in the history
…1434)

regex: "^[0-9]+[.][0-9]+[.][0-9]+$" .  This avoids building from
tags like "1.20.0-rc" or "1.17.0-unstable"
  • Loading branch information
nu404040 authored Jun 22, 2023
1 parent a030619 commit 09ee97b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion default.env
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ ERIGON_DOCKERFILE=Dockerfile.binary

# Nethermind
# SRC build target can be a tag, a branch, or a pr as "pr-ID"
NM_SRC_BUILD_TARGET='$(git describe --tags $(git rev-list --tags --max-count=1))'
NM_SRC_BUILD_TARGET='$(git tag --sort=-committerdate | grep -E "^[0-9]+[.][0-9]+[.][0-9]+$" | head -1)'
NM_DOCKER_TAG=latest
NM_DOCKERFILE=Dockerfile.binary

Expand Down

0 comments on commit 09ee97b

Please sign in to comment.