Skip to content

Commit 31fa77c

Browse files
committed
Adding ci/cd, fixing up readme to state that this is a maintained fork of the original software
1 parent 2b29ca1 commit 31fa77c

6 files changed

Lines changed: 99 additions & 147 deletions

File tree

.drone.yml

Lines changed: 0 additions & 70 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: release
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
jobs:
9+
goreleaser:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
with:
15+
fetch-depth: 0
16+
- name: Set up Go
17+
uses: actions/setup-go@v2
18+
with:
19+
go-version: 1.17.5
20+
- name: Run GoReleaser
21+
uses: goreleaser/goreleaser-action@v2
22+
with:
23+
distribution: goreleaser
24+
version: latest
25+
args: release --rm-dist
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
GOPATH: $HOME/go

.goreleaser.yml

Lines changed: 61 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,69 @@
11
# This is an example goreleaser.yaml file with some sane defaults.
22
# Make sure to check the documentation at http://goreleaser.com
3+
release:
4+
# Repo in which the release will be created.
5+
# Default is extracted from the origin remote URL or empty if its private hosted.
6+
# Note: it can only be one: either github, gitlab or gitea
7+
github:
8+
owner: nxtlytics
9+
name: e2d
310
before:
411
hooks:
5-
# Ensure that any go.mod modifications due to linters, go generate, etc are
6-
# removed.
7-
- go mod tidy
8-
# Using Go modules intrinsically causes modifications to these files that are
9-
# unfortunately unavoidable. Newer patch versions available to the CI will
10-
# satisfy the same module requirements and cause additions to go.sum.
11-
- git checkout -- go.sum
12+
# Ensure that any go.mod modifications due to linters, go generate, etc are
13+
# removed.
14+
- go mod tidy
15+
# Using Go modules intrinsically causes modifications to these files that are
16+
# unfortunately unavoidable. Newer patch versions available to the CI will
17+
# satisfy the same module requirements and cause additions to go.sum.
18+
- git checkout -- go.sum
1219
builds:
13-
- env:
14-
- CGO_ENABLED=0
15-
- GO111MODULE=on
16-
- GOPROXY=direct
17-
- GOSUMDB=off
18-
main: ./cmd/e2d
19-
goarch:
20-
- "386"
21-
- amd64
22-
- arm64
23-
gcflags:
24-
- all=-trimpath={{.Env.GOPATH}}
25-
asmflags:
26-
- all=-trimpath={{.Env.GOPATH}}
27-
ldflags:
28-
- -s -w
29-
- -X "github.com/criticalstack/e2d/pkg/buildinfo.Date={{.Date}}"
30-
- -X "github.com/criticalstack/e2d/pkg/buildinfo.GitSHA={{.ShortCommit}}"
31-
- -X "github.com/criticalstack/e2d/pkg/buildinfo.Version={{.Tag}}"
20+
- env:
21+
- CGO_ENABLED=0
22+
- GO111MODULE=on
23+
- GOPROXY=direct
24+
- GOSUMDB=off
25+
main: ./cmd/e2d
26+
goarch:
27+
- "386"
28+
- amd64
29+
- arm64
30+
gcflags:
31+
- all=-trimpath={{.Env.GOPATH}}
32+
asmflags:
33+
- all=-trimpath={{.Env.GOPATH}}
34+
ldflags:
35+
- -s -w
36+
- -X "github.com/criticalstack/e2d/pkg/buildinfo.Date={{.Date}}"
37+
- -X "github.com/criticalstack/e2d/pkg/buildinfo.GitSHA={{.ShortCommit}}"
38+
- -X "github.com/criticalstack/e2d/pkg/buildinfo.Version={{.Tag}}"
3239
archives:
33-
- replacements:
34-
darwin: Darwin
35-
linux: Linux
36-
windows: Windows
37-
386: i386
38-
amd64: x86_64
40+
- replacements:
41+
darwin: Darwin
42+
linux: Linux
43+
windows: Windows
44+
386: i386
45+
amd64: x86_64
3946
nfpms:
40-
- file_name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
41-
homepage: https://github.com/criticalstack/e2d
42-
description: Cloud-native etcd management
43-
maintainer: criticalstack <dev@criticalstack.com>
44-
license: Apache-2.0
45-
vendor: criticalstack
46-
bindir: "/usr/local/bin"
47-
replacements:
48-
amd64: x86_64
49-
formats:
50-
- deb
51-
- rpm
52-
conflicts:
53-
- etcd
54-
empty_folders:
55-
- /etc/systemd/system/e2d.service.d
56-
- /var/lib/etcd
57-
files:
58-
deploy/e2d.service: /etc/systemd/system/e2d.service
47+
- file_name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
48+
homepage: https://github.com/nxtlytics/e2d
49+
description: Cloud-native etcd management
50+
maintainer: NXTLytics <nobody@nogroup.com>
51+
license: Apache-2.0
52+
vendor: nxtlytics
53+
bindir: "/usr/local/bin"
54+
replacements:
55+
amd64: x86_64
56+
formats:
57+
- deb
58+
- rpm
59+
conflicts:
60+
- etcd
61+
empty_folders:
62+
- /etc/systemd/system/e2d.service.d
63+
- /var/lib/etcd
64+
contents:
65+
- src: deploy/e2d.service
66+
dst: /etc/systemd/system/e2d.service
5967
checksum:
6068
name_template: 'checksums.txt'
6169
snapshot:
@@ -64,5 +72,5 @@ changelog:
6472
sort: asc
6573
filters:
6674
exclude:
67-
- '^docs:'
68-
- '^test:'
75+
- '^docs:'
76+
- '^test:'

.whitesource

Lines changed: 0 additions & 12 deletions
This file was deleted.

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# e2d
1+
# NXTLytics e2d fork
22

33
[![GoDoc](https://godoc.org/github.com/criticalstack/e2d?status.svg)](https://godoc.org/github.com/criticalstack/e2d)
4-
[![Build Status](https://cloud.drone.io/api/badges/criticalstack/e2d/status.svg)](https://cloud.drone.io/criticalstack/e2d)
54

65
e2d is a command-line tool for deploying and managing etcd clusters, both in the cloud or on bare-metal. It also includes [e2db](https://github.com/criticalstack/e2d/tree/master/pkg/e2db), an ORM-like abstraction for working with etcd.
76

87
## Table of Contents
98

9+
- [What does the NXTLytics fork of e2d change?](#what-does-the-nxtlytics-fork-of-e2d-change)
1010
- [What is e2d](#what-is-e2d)
1111
- [Features](#features)
1212
- [Design](#design)
@@ -24,10 +24,18 @@ e2d is a command-line tool for deploying and managing etcd clusters, both in the
2424
- [Running with Kubernetes](#running-with-kubernetes)
2525
- [FAQ](#faq)
2626

27+
## What does the NXTLytics fork of e2d change?
28+
29+
See the Github Releases page for a list of the changes for each release.
30+
31+
Releases are versioned in the format `v{upstream}-nxt+{nxtlytics version}`, where `upstream` is the version number from CriticalStack, and `nxtlytics version` is the enhancement version from this fork.
32+
2733
## What is e2d
2834

2935
e2d is designed to manage highly available etcd clusters in the cloud. It can be configured to interact directly with your cloud provider to seed the cluster membership and backup/restore etcd data.
3036

37+
e2d was originally created by the [CriticalStack team](https://github.com/criticalstack/), and we are extremely grateful to them for their contribution to the Open Source community!
38+
3139
### Features
3240

3341
* Cluster management

deploy/criticalstack.repo

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)