Skip to content

Commit

Permalink
Add a porch blueprint (kpt package) to Github Release assets
Browse files Browse the repository at this point in the history
  • Loading branch information
kispaljr committed Nov 8, 2024
1 parent 7ef9ce3 commit 5ab7633
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 30 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Build porch blueprint
run: IMAGE_REPO=docker.io/nephio IMAGE_TAG=${{ github.ref_name }} make deployment-config

- name: Run GoReleaser
id: run-goreleaser
uses: goreleaser/goreleaser-action@v5
Expand Down
46 changes: 16 additions & 30 deletions release/tag/goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,59 +19,45 @@
# matrix of GOOS and GOARCH combinations, but instead, we'd need to define separate
# steps for each targeted OS and ARCH. This is because we need to specify the
# platform specific C std library (libc) and cross-compiler to be used.
version: 2
env:
- CGO_ENABLED=0
- GO111MODULE=on
builds:
- id: darwin-amd64
env:
- CGO_ENABLED=0
- GO111MODULE=on
- id: porchctl_darwin
goos:
- darwin
goarch:
- amd64
ldflags: -s -w -X github.com/nephio-project/porch/cmd/porchctl/run.version={{.Version}}
main: ./cmd/porchctl

- id: darwin-arm64
env:
- CGO_ENABLED=0
- GO111MODULE=on
goos:
- darwin
goarch:
- arm64
ldflags: -s -w -X github.com/nephio-project/porch/cmd/porchctl/run.version={{.Version}}
main: ./cmd/porchctl
binary: porchctl

- id: linux-amd64
env:
- CGO_ENABLED=0
- GO111MODULE=on
- id: porchctl_linux
goos:
- linux
goarch:
- amd64
ldflags: -s -w -X github.com/nephio-project/porch/cmd/porchctl/run.version={{.Version}} -extldflags "-z noexecstack"
main: ./cmd/porchctl

- id: linux-arm64
env:
- CGO_ENABLED=0
- GO111MODULE=on
goos:
- linux
goarch:
- arm64
ldflags: -s -w -X github.com/nephio-project/porch/cmd/porchctl/run.version={{.Version}} -extldflags "-z noexecstack"
main: ./cmd/porchctl
binary: porchctl

archives:
- name_template: 'porchctl_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
- id: blueprint
meta: true
files:
- src: ".build/deploy/*"
dst: "."
strip_parent: true
name_template: '{{ .ProjectName }}_blueprint'

checksum:
name_template: "checksums.txt"
snapshot:
name_template: "main"
version_template: "main"
changelog:
sort: asc
filters:
Expand All @@ -82,7 +68,7 @@ changelog:
- Merge pull request
- Merge branch

project_name: porchctl
project_name: porch

release:
github:
Expand Down

0 comments on commit 5ab7633

Please sign in to comment.