Skip to content

Commit

Permalink
added temp pipeline + goreleaser config
Browse files Browse the repository at this point in the history
  • Loading branch information
izleads committed May 4, 2022
1 parent 2823fd7 commit 27df9fb
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 1 deletion.
31 changes: 31 additions & 0 deletions .github/workflows/builder.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: builder

on:
push:
tags:
- 'v*'

jobs:
build:
name: Build Application
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
distribution: goreleaser
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GO_RELEASER_GITHUB_TOKEN }}
44 changes: 44 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
project_name: consul-config-manager

before:
hooks:
- go mod download

env:
- CGO_ENABLED=0
- GO111MODULE=on

builds:
- goos:
- linux
- windows
- darwin
goarch:
- "386"
- amd64
- arm64
ldflags:
- -s -w -X github.com/leads-su/version.version={{.Version}} -X github.com/leads-su/version.commit={{.Commit}} -X github.com/leads-su/version.buildDate={{.Date}} -X github.com/leads-su/version.builtBy=goreleaser

archives:
- format: zip
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
files:
- changelog*
- CHANGELOG*
- readme*
- README*
- license
- LICENSE*

checksum:
name_template: "{{ .ProjectName }}_{{ .Version }}_SHA256SUMS"
algorithm: sha256

changelog:
sort: asc
filters:
exclude:
- "^*.md:"
- "^docs:"
- "^test:"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ CCM is able to be configured with multiple servers in mind.
That means that in case there is a problem with one of the servers, CCM will switch to another one.
Also, upon initial connection, all servers will be pinged and server with lowest latency will be used.

# Initila Setup
# Initial Setup

By default, CCM will use `/etc/ccm.d` as its configuration folder.
It will also try to load `config.yml` from this directory as its default configuration source.
Expand Down

0 comments on commit 27df9fb

Please sign in to comment.