From a5e516d04c1ee859ba5b76d2f1c22519e4e12acd Mon Sep 17 00:00:00 2001 From: shaowenchen Date: Sat, 16 Jan 2021 18:30:36 +0800 Subject: [PATCH] remove: gorelease --- .github/workflows/build.yml | 34 --------------------------- .github/workflows/ci.yml | 6 +++++ .goreleaser.yml | 46 ------------------------------------- Makefile | 6 ----- 4 files changed, 6 insertions(+), 86 deletions(-) delete mode 100644 .github/workflows/build.yml delete mode 100644 .goreleaser.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index ad8e333..0000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -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 \ No newline at end of file diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 935638e..824c63e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,3 +28,9 @@ jobs: - name: Build run: make ke + + - uses: actions/upload-artifact@v2 + if: github.event_name == 'push' + with: + name: kubeye + path: ke diff --git a/.goreleaser.yml b/.goreleaser.yml deleted file mode 100644 index 00b8aef..0000000 --- a/.goreleaser.yml +++ /dev/null @@ -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 \ No newline at end of file diff --git a/Makefile b/Makefile index 747ccbd..8bfe18b 100644 --- a/Makefile +++ b/Makefile @@ -25,9 +25,3 @@ clean: # uninstall kubeye from local computer uninstall: 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