remove: gorelease

This commit is contained in:
shaowenchen 2021-01-16 18:30:36 +08:00
parent c82f5d6ab2
commit a5e516d04c
4 changed files with 6 additions and 86 deletions

View File

@ -1,34 +0,0 @@
name: Package
on:
push:
branches: [ main ]
jobs:
build:
name: Package
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.14
uses: actions/setup-go@v1
with:
go-version: 1.14
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Test
run: |
make test
- name: Build
run: |
make build-multiarch
- uses: actions/upload-artifact@v2
if: github.event_name == 'push'
with:
name: kubeye
path: dist/*.tar.gz

View File

@ -28,3 +28,9 @@ jobs:
- name: Build - name: Build
run: make ke run: make ke
- uses: actions/upload-artifact@v2
if: github.event_name == 'push'
with:
name: kubeye
path: ke

View File

@ -1,46 +0,0 @@
# Visit https://goreleaser.com for documentation on how to customize this
# behavior.
project_name: ke
before:
hooks:
# this is just an example and not a requirement for provider building/publishing
- make install-packr2
- rm -f pkg/config/config-packr.go
- rm -f pkg/validator/validator-packr.go
builds:
- env:
# goreleaser does not work with CGO, it could also complicate
# usage by users in CI/CD systems like Terraform Cloud where
# they are unable to install libraries.
- CGO_ENABLED=0
- GO111MODULE=on
mod_timestamp: '{{ .CommitTimestamp }}'
flags:
- -trimpath
ldflags:
- '-s -w -X main.version={{.Version}}'
goos:
- freebsd
- windows
- linux
- darwin
goarch:
- amd64
- '386'
- arm
- arm64
ignore:
- goos: darwin
goarch: '386'
binary: '{{ .ProjectName }}'
main: main.go
snapshot:
name_template: ""
archives:
- format: tar.gz
name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}'
checksum:
name_template: '{{ .ProjectName }}_checksum.txt'
algorithm: sha256
changelog:
skip: true

View File

@ -25,9 +25,3 @@ clean:
# uninstall kubeye from local computer # uninstall kubeye from local computer
uninstall: uninstall:
rm /usr/local/bin/${BINARY} 2> /dev/null rm /usr/local/bin/${BINARY} 2> /dev/null
install-goreleaser:
curl -sfL https://install.goreleaser.com/github.com/goreleaser/goreleaser.sh | sh
build-multiarch: install-goreleaser
./bin/goreleaser release --snapshot --skip-publish --rm-dist