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

View File

@ -83,6 +83,7 @@ workflows:
parameters: parameters:
os: [ linux, darwin, windows ] os: [ linux, darwin, windows ]
arch: [ amd64, arm64 ] arch: [ amd64, arm64 ]
workflow: [ snapshot ]
exclude: exclude:
- os: darwin - os: darwin
arch: arm64 arch: arm64
@ -149,6 +150,7 @@ workflows:
parameters: parameters:
os: [ linux, darwin, windows ] os: [ linux, darwin, windows ]
arch: [ amd64, arm64 ] arch: [ amd64, arm64 ]
workflow: [ snapshot ]
exclude: exclude:
- os: darwin - os: darwin
arch: arm64 arch: arm64
@ -231,6 +233,7 @@ workflows:
parameters: parameters:
os: [ linux, darwin, windows ] os: [ linux, darwin, windows ]
arch: [ amd64, arm64 ] arch: [ amd64, arm64 ]
workflow: [ release ]
exclude: exclude:
- os: darwin - os: darwin
arch: arm64 arch: arm64
@ -406,12 +409,22 @@ jobs:
type: string type: string
arch: arch:
type: string type: string
workflow:
type: string
steps: steps:
- checkout - checkout
- run: - when:
name: Build Binaries condition:
command: | equals: [ << parameters.workflow >>, snapshot ]
GOOS=<<parameters.os>> GOARCH=<<parameters.arch>> make 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: - store_artifacts:
path: bin path: bin
- persist_to_workspace: - persist_to_workspace: