Skip to content

Commit

Permalink
Pin ubuntu version in Release workflow, use correct goreleaser args f…
Browse files Browse the repository at this point in the history
…or sealctl and add release checksum (#2249)

* ci: pin ubuntu version in Release workflow to 18.04

Signed-off-by: Mercurio <[email protected]>

* ci: use correct goreleaser args for sealctl

Signed-off-by: Mercurio <[email protected]>

* ci: add release checksum

Signed-off-by: Mercurio <[email protected]>

Signed-off-by: Mercurio <[email protected]>
  • Loading branch information
SignorMercurio authored Dec 12, 2022
1 parent 83571fb commit 0c5cc7b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:

jobs:
goreleaser:
runs-on: ubuntu-latest
runs-on: ubuntu-18.04
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down
16 changes: 13 additions & 3 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ builds:

- id: sealctl
env:
- CGO_ENABLED=0
- CGO_ENABLED=1
- CC=aarch64-linux-gnu-gcc
main: ./cmd/sealctl
hooks:
post: upx "{{ .Path }}"
Expand All @@ -80,6 +81,15 @@ builds:
- -X github.com/labring/sealos/pkg/version.gitCommit={{.ShortCommit}}
- -X github.com/labring/sealos/pkg/version.buildDate={{.Date}}
- -s -w
overrides:
- goos: linux
goarch: amd64
goamd64: v1
goarm: ""
gomips: ""
env:
- CGO_ENABLED=1
- CC=x86_64-linux-gnu-gcc

- id: lvscare
env:
Expand Down Expand Up @@ -237,8 +247,8 @@ publishers:
curl -F package=@{{ .ArtifactName }} https://{{ .Env.FURY_TOKEN }}@push.fury.io/{{ .Env.USERNAME }}/
checksum:
disable: true
name_template: "{{ .ProjectName }}_checksums.txt"

algorithm: sha256

snapshot:
name_template: "{{ .Tag }}-next"

0 comments on commit 0c5cc7b

Please sign in to comment.