chore: use GitHub Actions.

This commit is contained in:
Fernandez Ludovic
2020-12-05 16:51:32 +01:00
parent 9378a1e1d2
commit 6516f0ace6
8 changed files with 155 additions and 69 deletions

View File

@ -2,19 +2,21 @@
TAG_NAME := $(shell git tag -l --contains HEAD)
IMAGE_NAME := traefik/whoami
default: check test build
build:
CGO_ENABLED=0 go build -a --trimpath --installsuffix cgo --ldflags="-s" -o whoami
test:
go test -v -cover ./...
build:
CGO_ENABLED=0 go build -a --installsuffix cgo --ldflags="-s" -o whoami
image:
docker build -t traefik/whoami .
check:
golangci-lint run
image:
docker build -t $(IMAGE_NAME) .
publish-images:
seihon publish -v "$(TAG_NAME)" -v "latest" --image-name traefik/whoami --dry-run=false
seihon publish -v "$(TAG_NAME)" -v "latest" --image-name $(IMAGE_NAME) --dry-run=false