forked from brightoneqq/openfaas-sqs-connector-1
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (20 loc) · 766 Bytes
/
Makefile
File metadata and controls
28 lines (20 loc) · 766 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
SHELL := /bin/bash
ROOT := $(shell git rev-parse --show-toplevel)
VERSION ?= $(shell git describe --tags --dirty="-dev")
DOCKER_IMG ?= form3tech/openfaas-sqs-connector
DOCKER_TAG ?= $(VERSION)
.PHONY: docker.build
docker.build:
docker build -t $(DOCKER_IMG):$(DOCKER_TAG) $(ROOT)
.PHONY: docker.push
docker.push: docker.build
echo "$(DOCKER_PASSWORD)" | docker login -u "$(DOCKER_USERNAME)" --password-stdin
docker push $(DOCKER_IMG):$(DOCKER_TAG)
.PHONY: install-golangci-lint
install-golangci-lint:
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $$(go env GOPATH)/bin latest
.PHONY: install-deps
install-deps: install-golangci-lint
.PHONY: lint
lint:
golangci-lint run ./... --enable-all --disable lll,wsl