fix: supply "VERSION" and "COMMIT" to Makefile (#518)

* fix: don't import non-existent/unused GPG private key

* fix: supply "VERSION" when doing release builds
This commit is contained in:
Brandon Pfeifer 2023-06-21 14:57:03 -04:00 committed by GitHub
parent 467d545c26
commit 3a37835386
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -81,8 +81,9 @@ workflows:
name: build-<< matrix.os >>-<< matrix.arch >>
matrix:
parameters:
os: [ linux, darwin, windows ]
arch: [ amd64, arm64 ]
os: [ linux, darwin, windows ]
arch: [ amd64, arm64 ]
workflow: [ snapshot ]
exclude:
- os: darwin
arch: arm64
@ -147,8 +148,9 @@ workflows:
name: build-<< matrix.os >>-<< matrix.arch >>
matrix:
parameters:
os: [ linux, darwin, windows ]
arch: [ amd64, arm64 ]
os: [ linux, darwin, windows ]
arch: [ amd64, arm64 ]
workflow: [ snapshot ]
exclude:
- os: darwin
arch: arm64
@ -229,8 +231,9 @@ workflows:
name: build-<< matrix.os >>-<< matrix.arch >>
matrix:
parameters:
os: [ linux, darwin, windows ]
arch: [ amd64, arm64 ]
os: [ linux, darwin, windows ]
arch: [ amd64, arm64 ]
workflow: [ release ]
exclude:
- os: darwin
arch: arm64
@ -406,12 +409,22 @@ jobs:
type: string
arch:
type: string
workflow:
type: string
steps:
- checkout
- run:
name: Build Binaries
command: |
GOOS=<<parameters.os>> GOARCH=<<parameters.arch>> make
- when:
condition:
equals: [ << parameters.workflow >>, snapshot ]
steps:
- run: |
GOOS=<< parameters.os >> GOARCH=<< parameters.arch >> COMMIT=<< pipeline.git.revision >> make
- when:
condition:
equals: [ << parameters.workflow >>, release ]
steps:
- run: |
GOOS=<< parameters.os >> GOARCH=<< parameters.arch >> COMMIT=<< pipeline.git.revision >> VERSION=<< pipeline.git.tag >> make
- store_artifacts:
path: bin
- persist_to_workspace: