From d23e6f5d64a481b5011981ecc8f54cf68d769c47 Mon Sep 17 00:00:00 2001 From: EItanya Date: Sat, 13 Nov 2021 13:37:50 +0000 Subject: [PATCH] ci code --- ci/release_assets.go | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 ci/release_assets.go diff --git a/ci/release_assets.go b/ci/release_assets.go new file mode 100644 index 0000000..b669755 --- /dev/null +++ b/ci/release_assets.go @@ -0,0 +1,31 @@ +package main + +import ( + "github.com/solo-io/go-utils/githubutils" +) + +func main() { + const buildDir = "_output" + const repoOwner = "solo-io" + const repoName = "ebpf" + + assets := make([]githubutils.ReleaseAssetSpec, 3) + assets[0] = githubutils.ReleaseAssetSpec{ + Name: "ebpfctl-linux-amd64", + ParentPath: buildDir, + UploadSHA: true, + } + assets[1] = githubutils.ReleaseAssetSpec{ + Name: "ebpfctl-linux-arm64", + ParentPath: buildDir, + UploadSHA: true, + } + + spec := githubutils.UploadReleaseAssetSpec{ + Owner: repoOwner, + Repo: repoName, + Assets: assets, + SkipAlreadyExists: true, + } + githubutils.UploadReleaseAssetCli(&spec) +}