Skip to content

Commit

Permalink
Adding ci/cd, fixing up readme to state that this is a maintained for…
Browse files Browse the repository at this point in the history
…k of the original software
  • Loading branch information
thecubed committed Jan 13, 2022
1 parent 2b29ca1 commit 6bba697
Show file tree
Hide file tree
Showing 6 changed files with 100 additions and 147 deletions.
70 changes: 0 additions & 70 deletions .drone.yml

This file was deleted.

29 changes: 29 additions & 0 deletions .github/workflows/release.yml
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
114 changes: 61 additions & 53 deletions .goreleaser.yml
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:
Expand All @@ -64,5 +72,5 @@ changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
- '^docs:'
- '^test:'
12 changes: 0 additions & 12 deletions .whitesource

This file was deleted.

12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# e2d
# NXTLytics e2d fork

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

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.

## Table of Contents

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

## What does the NXTLytics fork of e2d change?

See the Github Releases page for a list of the changes for each release.

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.

## What is e2d

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.

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!

### Features

* Cluster management
Expand Down
10 changes: 0 additions & 10 deletions deploy/criticalstack.repo

This file was deleted.

0 comments on commit 6bba697

Please sign in to comment.