Skip to content

Instantly share code, notes, and snippets.

@tuananh
Created January 13, 2023 17:46
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tuananh/7bf4996b6c2d4d6775ddd1d4d6b09fca to your computer and use it in GitHub Desktop.
Save tuananh/7bf4996b6c2d4d6775ddd1d4d6b09fca to your computer and use it in GitHub Desktop.
package:
name: kubevela
version: 1.7.0
epoch: 0
description: KubeVela is a modern application delivery platform that makes deploying and operating applications across today's hybrid, multi-cloud environments easier, faster and more reliable
target-architecture:
- all
copyright:
- license: Apache-2.0
paths:
- "*"
dependencies:
runtime:
- ca-certificates-bundle
environment:
contents:
packages:
- ca-certificates-bundle
- busybox
- go
- build-base
pipeline:
- uses: fetch
with:
uri: https://github.com/kubevela/kubevela/archive/refs/tags/v${{package.version}}.tar.gz
expected-sha256: fd102cc6fd76273d5a3bc88faa050f3d0eed5cbfc9a253522d9fad012cc0babf
- runs: |
export CGO_ENABLED=0
export GO111MODULE=on
- uses: go/build
with:
packages: ./cmd/core/main.go
ldflags: '"-X github.com/oam-dev/kubevela/version.VelaVersion=${{package.version}}"'
output: manager
- uses: go/build
with:
packages: ./cmd/apiserver/main.go
ldflags: '"-X github.com/oam-dev/kubevela/version.VelaVersion=${{package.version}}"'
output: apiserver
- uses: go/build
with:
packages: ./references/cmd/cli/main.go
ldflags: '"-X github.com/oam-dev/kubevela/version.VelaVersion=${{package.version}}"'
output: vela
- uses: strip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment