forked from criticalstack/e2d
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding ci/cd, fixing up readme to state that this is a maintained for…
…k of the original software
- Loading branch information
Showing
6 changed files
with
100 additions
and
147 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: release | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
goreleaser: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.17.5 | ||
- name: Run GoReleaser | ||
uses: goreleaser/goreleaser-action@v2 | ||
with: | ||
distribution: goreleaser | ||
version: latest | ||
args: release --rm-dist | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# this isn't great, but if it breaks, we'll know quickly | ||
GOPATH: /home/runner/go |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +1,69 @@ | ||
# This is an example goreleaser.yaml file with some sane defaults. | ||
# Make sure to check the documentation at http://goreleaser.com | ||
release: | ||
# Repo in which the release will be created. | ||
# Default is extracted from the origin remote URL or empty if its private hosted. | ||
# Note: it can only be one: either github, gitlab or gitea | ||
github: | ||
owner: nxtlytics | ||
name: e2d | ||
before: | ||
hooks: | ||
# Ensure that any go.mod modifications due to linters, go generate, etc are | ||
# removed. | ||
- go mod tidy | ||
# Using Go modules intrinsically causes modifications to these files that are | ||
# unfortunately unavoidable. Newer patch versions available to the CI will | ||
# satisfy the same module requirements and cause additions to go.sum. | ||
- git checkout -- go.sum | ||
# Ensure that any go.mod modifications due to linters, go generate, etc are | ||
# removed. | ||
- go mod tidy | ||
# Using Go modules intrinsically causes modifications to these files that are | ||
# unfortunately unavoidable. Newer patch versions available to the CI will | ||
# satisfy the same module requirements and cause additions to go.sum. | ||
- git checkout -- go.sum | ||
builds: | ||
- env: | ||
- CGO_ENABLED=0 | ||
- GO111MODULE=on | ||
- GOPROXY=direct | ||
- GOSUMDB=off | ||
main: ./cmd/e2d | ||
goarch: | ||
- "386" | ||
- amd64 | ||
- arm64 | ||
gcflags: | ||
- all=-trimpath={{.Env.GOPATH}} | ||
asmflags: | ||
- all=-trimpath={{.Env.GOPATH}} | ||
ldflags: | ||
- -s -w | ||
- -X "github.com/criticalstack/e2d/pkg/buildinfo.Date={{.Date}}" | ||
- -X "github.com/criticalstack/e2d/pkg/buildinfo.GitSHA={{.ShortCommit}}" | ||
- -X "github.com/criticalstack/e2d/pkg/buildinfo.Version={{.Tag}}" | ||
- env: | ||
- CGO_ENABLED=0 | ||
- GO111MODULE=on | ||
- GOPROXY=direct | ||
- GOSUMDB=off | ||
main: ./cmd/e2d | ||
goarch: | ||
- "386" | ||
- amd64 | ||
- arm64 | ||
gcflags: | ||
- all=-trimpath={{.Env.GOPATH}} | ||
asmflags: | ||
- all=-trimpath={{.Env.GOPATH}} | ||
ldflags: | ||
- -s -w | ||
- -X "github.com/criticalstack/e2d/pkg/buildinfo.Date={{.Date}}" | ||
- -X "github.com/criticalstack/e2d/pkg/buildinfo.GitSHA={{.ShortCommit}}" | ||
- -X "github.com/criticalstack/e2d/pkg/buildinfo.Version={{.Tag}}" | ||
archives: | ||
- replacements: | ||
darwin: Darwin | ||
linux: Linux | ||
windows: Windows | ||
386: i386 | ||
amd64: x86_64 | ||
- replacements: | ||
darwin: Darwin | ||
linux: Linux | ||
windows: Windows | ||
386: i386 | ||
amd64: x86_64 | ||
nfpms: | ||
- file_name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}' | ||
homepage: https://github.com/criticalstack/e2d | ||
description: Cloud-native etcd management | ||
maintainer: criticalstack <[email protected]> | ||
license: Apache-2.0 | ||
vendor: criticalstack | ||
bindir: "/usr/local/bin" | ||
replacements: | ||
amd64: x86_64 | ||
formats: | ||
- deb | ||
- rpm | ||
conflicts: | ||
- etcd | ||
empty_folders: | ||
- /etc/systemd/system/e2d.service.d | ||
- /var/lib/etcd | ||
files: | ||
deploy/e2d.service: /etc/systemd/system/e2d.service | ||
- file_name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}' | ||
homepage: https://github.com/nxtlytics/e2d | ||
description: Cloud-native etcd management | ||
maintainer: NXTLytics <[email protected]> | ||
license: Apache-2.0 | ||
vendor: nxtlytics | ||
bindir: "/usr/local/bin" | ||
replacements: | ||
amd64: x86_64 | ||
formats: | ||
- deb | ||
- rpm | ||
conflicts: | ||
- etcd | ||
empty_folders: | ||
- /etc/systemd/system/e2d.service.d | ||
- /var/lib/etcd | ||
contents: | ||
- src: deploy/e2d.service | ||
dst: /etc/systemd/system/e2d.service | ||
checksum: | ||
name_template: 'checksums.txt' | ||
snapshot: | ||
|
@@ -64,5 +72,5 @@ changelog: | |
sort: asc | ||
filters: | ||
exclude: | ||
- '^docs:' | ||
- '^test:' | ||
- '^docs:' | ||
- '^test:' |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.