-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.yaml
More file actions
35 lines (29 loc) · 732 Bytes
/
build.yaml
File metadata and controls
35 lines (29 loc) · 732 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
version: 1.2
vars:
GLOBAL: "false" # Set to true if you want to copy the binary to /usr/local/bin
setup:
- name: "Install dependencies"
command: "go mod tidy"
- name: "Generate documentation"
command: "go run main.go generate-docs"
parallel:
- name: "Code quality checks"
commands:
- "go vet ./..."
- "golangci-lint run ./..."
steps:
- name: "Build binary"
command: "go build -o gitgeist main.go"
post_build:
- name: "Moving binary"
command: "mv gitgeist output/gitgeist"
- name: "Copying binary to global path"
command: "cp output/gitgeist /usr/local/bin"
if: "$GLOBAL == true"
ignore:
- "output/*"
- "cfg/*"
- ".git/*"
- "*.log"
- "build.yaml"
- "readme.md"