mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-04-20 19:38:39 +00:00
ci: use tag/branch for release/ci building
This commit is contained in:
14
Makefile
14
Makefile
@@ -101,11 +101,15 @@ version: ## Print aptly version
|
||||
fi
|
||||
|
||||
releasetype: # Print release type (ci/release)
|
||||
@if [ -z "`git tag --points-at HEAD`" ]; then \
|
||||
echo ci ; \
|
||||
else \
|
||||
echo release ; \
|
||||
fi
|
||||
@reltype=ci ; \
|
||||
gitbranch=`git rev-parse --abbrev-ref HEAD` ; \
|
||||
if [ "$$gitbranch" = "HEAD" ]; then \
|
||||
gittag=`git describe --tags --exact-match` ;\
|
||||
if echo "$$gittag" | grep -q '^v[0-9]'; then \
|
||||
reltype=release ; \
|
||||
fi ; \
|
||||
fi ; \
|
||||
echo $$reltype
|
||||
|
||||
build: ## Build aptly
|
||||
go mod tidy
|
||||
|
||||
Reference in New Issue
Block a user