diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d4abe01..affbf73 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,7 +20,10 @@ jobs: uses: actions/checkout@v2 with: fetch-depth: '0' - + + - name: Set env + run: echo "OCTORPKI_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV + - name: Build run: | GOOS=linux make build-octorpki diff --git a/Makefile b/Makefile index 61e89ff..9a005e9 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ BUILDINFOSDET ?= DOCKER_REPO := cloudflare/ OCTORPKI_NAME := octorpki -OCTORPKI_VERSION := $(shell git describe) +OCTORPKI_VERSION ?= $(shell git describe) VERSION_PKG := $(shell echo $(OCTORPKI_VERSION) | sed 's/^v//g') ARCH := x86_64 LICENSE := BSD-3