Skip to content

Commit

Permalink
Merge pull request #31 from humio/mike/fix_release_procedures
Browse files Browse the repository at this point in the history
Various fixes to release process
  • Loading branch information
SaaldjorMike authored Jul 31, 2020
2 parents e3ca61b + 7ee6bd1 commit 74ebaa2
Show file tree
Hide file tree
Showing 74 changed files with 275 additions and 509 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: CI

on: push

jobs:
build:
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.14
-
name: Build snapshot with GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: build --rm-dist --snapshot
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: goreleaser
on:
push:
tags:
- '*'
- 'v*'

jobs:
goreleaser:
Expand All @@ -12,9 +12,8 @@ jobs:
-
name: Checkout
uses: actions/checkout@v2
-
name: Unshallow
run: git fetch --prune --unshallow
with:
fetch-depth: 0
-
name: Install Snapcraft
uses: samuelmeuli/action-snapcraft@v1
Expand All @@ -40,6 +39,7 @@ jobs:
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }}
-
name: Clear
if: always()
Expand Down
28 changes: 13 additions & 15 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ project_name: humioctl

builds:
- binary: humioctl
main: ./cmd/humioctl
goos:
- windows
- darwin
Expand All @@ -16,16 +17,18 @@ release:
owner: humio
name: cli

#brews:
# -
# github:
# owner: humio
# name: homebrew-humio
# folder: Formula
# homepage: https://humio.com/
# description: Manage and Stream Logs to Humio
# test: |
# system "echo DONE"
brews:
-
tap:
owner: humio
name: homebrew-humio
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
url_template: "https://github.com/humio/homebrew-humio/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
folder: Formula
homepage: https://humio.com/
description: Manage and Stream Logs to Humio
test: |
system "echo DONE"
archives:
-
Expand Down Expand Up @@ -91,8 +94,3 @@ snapcrafts:
# things they allow:
# https://snapcraft.io/docs/reference/interfaces.
plugs: ["home", "network"]

#dockers:
# - image_templates:
# - humio/cli:latest
# - humio/cli:{{ .Tag }}
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
See [https://github.com/humio/cli/releases](https://github.com/humio/cli/releases).
175 changes: 0 additions & 175 deletions CHANGES

This file was deleted.

5 changes: 0 additions & 5 deletions Dockerfile

This file was deleted.

19 changes: 6 additions & 13 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,30 +10,23 @@ all: build

$(BIN_PATH): FORCE
@echo "--> Building Humio CLI"
go build -o $(BIN_PATH) main.go
go build -o $(BIN_PATH) cmd/humioctl/*.go

build: $(BIN_PATH)

get:
@echo "--> Fetching dependencies"
go get

test:
@echo "--> Testing"
go test

clean:
@echo "--> Cleaning"
go clean
@rm -rf bin/

dist: clean
@echo "--> Tagging Git & Releasing"
./scripts/dist.sh
snapshot:
@echo "--> Building snapshot"
goreleaser build --rm-dist --snapshot
@rm -rf bin/

run: $(BIN_PATH)
$(BIN_PATH) $(CLI_COMMAND)

.PHONY: build get clean dist run FORCE
.PHONY: build clean snapshot run FORCE

FORCE:
Loading

0 comments on commit 74ebaa2

Please sign in to comment.