Skip to content

Commit

Permalink
Merge pull request #22223 from newcarlis/whereabouts
Browse files Browse the repository at this point in the history
Whereabouts package
  • Loading branch information
EyeCantCU authored Jun 23, 2024
2 parents 24a2ea0 + 3333aae commit bd68275
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions whereabouts.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
package:
name: whereabouts
version: 0.7.0
epoch: 0
description: A CNI IPAM plugin that assigns IP addresses cluster-wide
dependencies:
runtime:
# https://github.com/k8snetworkplumbingwg/whereabouts/blob/4a6fc53afbc7c888dc803517e9eed8cb8d400214/script/install-cni.sh
- busybox

environment:
environment:
CGO_ENABLED: "0"

pipeline:
- uses: git-checkout
with:
repository: https://github.com/k8snetworkplumbingwg/whereabouts
tag: v${{package.version}}
expected-commit: c599b3c211fecd0c46460a10a81876ce447f6720

- uses: go/bump
with:
deps: golang.org/x/[email protected]

- uses: go/build
with:
modroot: .
ldflags: -w -X github.com/k8snetworkplumbingwg/whereabouts/pkg/version.Version=${{package.version}} -X github.com/k8snetworkplumbingwg/whereabouts/pkg/version.GitSHA=$(git rev-parse HEAD) -X github.com/k8snetworkplumbingwg/whereabouts/pkg/version.GitTreeState=clean -X github.com/k8snetworkplumbingwg/whereabouts/pkg/version.ReleaseStatus=released
packages: cmd/whereabouts.go
output: whereabouts

- uses: go/build
with:
modroot: .
ldflags: -w -X github.com/k8snetworkplumbingwg/whereabouts/pkg/version.Version=${{package.version}} -X github.com/k8snetworkplumbingwg/whereabouts/pkg/version.GitSHA=$(git rev-parse HEAD) -X github.com/k8snetworkplumbingwg/whereabouts/pkg/version.GitTreeState=clean -X github.com/k8snetworkplumbingwg/whereabouts/pkg/version.ReleaseStatus=released
packages: cmd/controlloop/controlloop.go
output: controlloop

- runs: |
mkdir -p "${{targets.contextdir}}"/
install -Dm755 script/install-cni.sh "${{targets.contextdir}}"/install-cni.sh
test:
pipeline:
- runs: |
whereabouts -h
update:
enabled: true
github:
identifier: k8snetworkplumbingwg/whereabouts
strip-prefix: v

0 comments on commit bd68275

Please sign in to comment.