ci: only read/modify `GO_TAGS` field (#9815)

Only lookup GO_TAGS variable, and avoid the false positives where GO_TAGS is a variable suffix.
This commit is contained in:
Mahmood Ali 2021-01-14 08:16:58 -05:00 committed by Chris Baker
parent 6ec555afd1
commit 74dcee0936
1 changed files with 2 additions and 2 deletions

View File

@ -427,7 +427,7 @@ jobs:
name: build binaries name: build binaries
command: | command: |
source ${BASH_ENV} source ${BASH_ENV}
export GO_TAGS="ui $(grep 'GO_TAGS ?=' ./GNUmakefile | cut -d= -f2)" export GO_TAGS="ui $(grep -e '^GO_TAGS ?=' ./GNUmakefile | cut -d= -f2)"
make pkg/darwin_amd64.zip make pkg/darwin_amd64.zip
- store_artifacts: - store_artifacts:
path: pkg/darwin_amd64.zip path: pkg/darwin_amd64.zip
@ -476,7 +476,7 @@ jobs:
- run: - run:
name: build binaries name: build binaries
command: | command: |
export GO_TAGS="ui $(grep 'GO_TAGS ?=' ./GNUmakefile | cut -d= -f2)" export GO_TAGS="ui $(grep -e '^GO_TAGS ?=' ./GNUmakefile | cut -d= -f2)"
make pkg/windows_amd64.zip pkg/linux_amd64.zip make pkg/windows_amd64.zip pkg/linux_amd64.zip
- store_artifacts: - store_artifacts:
path: pkg path: pkg