Skip to content

Commit

Permalink
ci code
Browse files Browse the repository at this point in the history
  • Loading branch information
EItanya committed Nov 13, 2021
1 parent 74fa796 commit d23e6f5
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions ci/release_assets.go
Original file line number Diff line number Diff line change
@@ -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)
}

0 comments on commit d23e6f5

Please sign in to comment.