From afe56a8060c3376ba1622d65aa61b200b5faf96d Mon Sep 17 00:00:00 2001 From: Mikolaj Stefaniak Date: Fri, 13 Dec 2024 17:27:37 +0000 Subject: [PATCH] fix: moved goreleaser manifest gen to avoid race cond --- .goreleaser.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 725045c..612e1ce 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -16,6 +16,8 @@ version: 2 before: hooks: - go mod tidy + - make manifests generate + - make release IMG=ghcr.io/google/{{ .ProjectName }}:{{ .Tag }} MANIFESTS=manifests.yaml builds: - id: kube-startup-cpu-boost main: ./cmd @@ -32,11 +34,6 @@ builds: goarch: - amd64 - arm64 - hooks: - pre: - - cmd: make manifests generate - post: - - cmd: make release IMG=ghcr.io/google/{{ .ProjectName }}:{{ .Tag }} MANIFESTS=manifests.yaml dockers: - goos: linux goarch: amd64