ci config
This commit is contained in:
parent
7903239e4f
commit
c6a7618651
18
.gitlab-ci.yml
Normal file
18
.gitlab-ci.yml
Normal file
@ -0,0 +1,18 @@
|
||||
image: golang:1.15
|
||||
|
||||
cache:
|
||||
paths:
|
||||
- /apt-cache
|
||||
- /go/src/github.com
|
||||
- /go/src/golang.org
|
||||
- /go/src/google.golang.org
|
||||
- /go/src/gopkg.in
|
||||
- /go/src/gitlab.lehouerou.net
|
||||
|
||||
stages:
|
||||
- build
|
||||
|
||||
build:
|
||||
stage: build
|
||||
script:
|
||||
- make
|
12
Makefile
Normal file
12
Makefile
Normal file
@ -0,0 +1,12 @@
|
||||
PROJECT_NAME := "dnsupdater"
|
||||
PKG := "gitlab.lehouerou.net/laurent/$(PROJECT_NAME)"
|
||||
PKG_LIST := $(shell go list ${PKG}/... | grep -v /vendor/)
|
||||
GO_FILES := $(shell find . -name '*.go' | grep -v /vendor/ | grep -v _test.go)
|
||||
|
||||
all: build
|
||||
|
||||
dep: ## Get the dependencies
|
||||
@go get -v -d ./...
|
||||
|
||||
build: dep ## Build the binary file
|
||||
@go build -i -v $(PKG)
|
Loading…
Reference in New Issue
Block a user