mirror of
https://github.com/Luzifer/vault-otp-ui.git
synced 2024-11-08 08:10:11 +00:00
Add CI building
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
154562e961
commit
eafd1b07cb
2 changed files with 21 additions and 0 deletions
10
.repo-runner.yaml
Normal file
10
.repo-runner.yaml
Normal file
|
@ -0,0 +1,10 @@
|
|||
---
|
||||
|
||||
image: "quay.io/luzifer/repo-runner-image"
|
||||
checkout_dir: /go/src/github.com/Luzifer/vault-otp-ui
|
||||
|
||||
commands:
|
||||
- make ci
|
||||
|
||||
environment:
|
||||
CGO_ENABLED: 0
|
11
Makefile
11
Makefile
|
@ -1,3 +1,14 @@
|
|||
default: build
|
||||
|
||||
ci:
|
||||
curl -sSLo golang.sh https://raw.githubusercontent.com/Luzifer/github-publish/master/golang.sh
|
||||
bash golang.sh
|
||||
|
||||
build: generate
|
||||
go build -ldflags "-X main.version=$(shell git describe --tags || git rev-parse --short HEAD || echo dev)"
|
||||
|
||||
install: generate
|
||||
go install -ldflags "-X main.version=$(shell git describe --tags || git rev-parse --short HEAD || echo dev)"
|
||||
|
||||
generate: build_js
|
||||
go generate
|
||||
|
|
Loading…
Reference in a new issue