fix(ci): pin nfpm container version and binary location
This commit is contained in:
parent
6a97a214a3
commit
0104aa504b
@ -504,7 +504,7 @@ steps:
|
|||||||
|
|
||||||
# Build os packages and push it to our bucket
|
# Build os packages and push it to our bucket
|
||||||
- name: build-os-packages-unstable
|
- name: build-os-packages-unstable
|
||||||
image: goreleaser/nfpm
|
image: goreleaser/nfpm:v2.22.2
|
||||||
pull: true
|
pull: true
|
||||||
commands:
|
commands:
|
||||||
- apk add git go
|
- apk add git go
|
||||||
@ -520,7 +520,7 @@ steps:
|
|||||||
depends_on: [ after-build-compress ]
|
depends_on: [ after-build-compress ]
|
||||||
|
|
||||||
- name: build-os-packages-version
|
- name: build-os-packages-version
|
||||||
image: goreleaser/nfpm
|
image: goreleaser/nfpm:v2.22.2
|
||||||
pull: true
|
pull: true
|
||||||
commands:
|
commands:
|
||||||
- apk add git go
|
- apk add git go
|
||||||
@ -719,6 +719,6 @@ steps:
|
|||||||
- failure
|
- failure
|
||||||
---
|
---
|
||||||
kind: signature
|
kind: signature
|
||||||
hmac: a8937e26dc5d29676571fd36ab58a883e65eee13b6cd0f86b9a115c234179685
|
hmac: f3b261d9329113993cdf8ae785daee6f0b2c0ea38662d2714385d7a31f7e5b2f
|
||||||
|
|
||||||
...
|
...
|
||||||
|
@ -703,7 +703,7 @@ func (Release) Packages() error {
|
|||||||
binpath := "nfpm"
|
binpath := "nfpm"
|
||||||
err = exec.Command(binpath).Run()
|
err = exec.Command(binpath).Run()
|
||||||
if err != nil && strings.Contains(err.Error(), "executable file not found") {
|
if err != nil && strings.Contains(err.Error(), "executable file not found") {
|
||||||
binpath = "/nfpm"
|
binpath = "/usr/bin/nfpm"
|
||||||
err = exec.Command(binpath).Run()
|
err = exec.Command(binpath).Run()
|
||||||
}
|
}
|
||||||
if err != nil && strings.Contains(err.Error(), "executable file not found") {
|
if err != nil && strings.Contains(err.Error(), "executable file not found") {
|
||||||
@ -712,7 +712,7 @@ func (Release) Packages() error {
|
|||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Because nfpm does not support templating, we replace the values in the config file and restore it after running
|
// Because nfpm does not support templating, we replace the values in the config file and restore it after running
|
||||||
nfpmConfigPath := RootPath + "/nfpm.yaml"
|
nfpmConfigPath := RootPath + "/nfpm.yaml"
|
||||||
nfpmconfig, err := os.ReadFile(nfpmConfigPath)
|
nfpmconfig, err := os.ReadFile(nfpmConfigPath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user