Skip to content

Commit

Permalink
Merge pull request #10 from cert-manager/self-upgrade
Browse files Browse the repository at this point in the history
[CI] Merge self-upgrade into main
  • Loading branch information
jetstack-bot authored Jan 24, 2024
2 parents 2f75014 + c71210e commit 3e98610
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
16 changes: 8 additions & 8 deletions klone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,40 +10,40 @@ targets:
- folder_name: boilerplate
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: 43dfc77ac0dc7b08fbeddef87a153b40b364929b
repo_hash: 324e25c81aa398da8c3d6ee96ab87d2441dab8e5
repo_path: modules/boilerplate
- folder_name: cert-manager
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: 43dfc77ac0dc7b08fbeddef87a153b40b364929b
repo_hash: 324e25c81aa398da8c3d6ee96ab87d2441dab8e5
repo_path: modules/cert-manager
- folder_name: executable
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: 43dfc77ac0dc7b08fbeddef87a153b40b364929b
repo_hash: 324e25c81aa398da8c3d6ee96ab87d2441dab8e5
repo_path: modules/executable
- folder_name: generate-verify
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: 43dfc77ac0dc7b08fbeddef87a153b40b364929b
repo_hash: 324e25c81aa398da8c3d6ee96ab87d2441dab8e5
repo_path: modules/generate-verify
- folder_name: help
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: 43dfc77ac0dc7b08fbeddef87a153b40b364929b
repo_hash: 324e25c81aa398da8c3d6ee96ab87d2441dab8e5
repo_path: modules/help
- folder_name: klone
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: 43dfc77ac0dc7b08fbeddef87a153b40b364929b
repo_hash: 324e25c81aa398da8c3d6ee96ab87d2441dab8e5
repo_path: modules/klone
- folder_name: repository-base
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: 43dfc77ac0dc7b08fbeddef87a153b40b364929b
repo_hash: 324e25c81aa398da8c3d6ee96ab87d2441dab8e5
repo_path: modules/repository-base
- folder_name: tools
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: 43dfc77ac0dc7b08fbeddef87a153b40b364929b
repo_hash: 324e25c81aa398da8c3d6ee96ab87d2441dab8e5
repo_path: modules/tools
6 changes: 2 additions & 4 deletions make/_shared/executable/01_mod.mk
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

exe_operating_systems ?= darwin,linux,windows
exe_architectures ?= amd64,arm,arm64,ppc64le,s390x
exe_targets ?= darwin_amd64_v1,darwin_arm64,linux_amd64_v1,linux_arm_7,linux_arm64,linux_ppc64le,linux_s390x,windows_amd64_v1,windows_arm64

ifndef bin_dir
$(error bin_dir is not set)
Expand Down Expand Up @@ -112,8 +111,7 @@ define template_for_target
$(YQ) 'with(.builds[]; select(.id == "$(1)") | .ldflags[1] = "-w")' | \
$(YQ) 'with(.builds[]; select(.id == "$(1)") | .ldflags[2] = "$(go_$(1)_ldflags)")' | \
$(YQ) 'with(.builds[]; select(.id == "$(1)") | .gobinary = "$(GO)")' | \
os=$(exe_operating_systems) $(YQ) 'with(.builds[]; select(.id == "$(1)") | .goos = (env(os) | split(",")))' | \
archs=$(exe_architectures) $(YQ) 'with(.builds[]; select(.id == "$(1)") | .goarch = (env(archs) | split(",")))' |
targets=$(exe_targets) $(YQ) 'with(.builds[]; select(.id == "$(1)") | .targets = (env(targets) | split(",")))' |
endef

## Build the go source for release. This will build the source
Expand Down

0 comments on commit 3e98610

Please sign in to comment.