Ensure certs exist before running linting
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
0b0b7fe395
commit
a47d73b669
@ -5,6 +5,9 @@ name: test
|
|||||||
steps:
|
steps:
|
||||||
- name: check
|
- name: check
|
||||||
image: iamthefij/drone-pre-commit:personal
|
image: iamthefij/drone-pre-commit:personal
|
||||||
|
commands:
|
||||||
|
- make certs
|
||||||
|
- pre-commit run --all-files
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
|
6
Makefile
6
Makefile
@ -19,19 +19,21 @@ test:
|
|||||||
pre-commit run --all-files
|
pre-commit run --all-files
|
||||||
go test
|
go test
|
||||||
|
|
||||||
slack-status: $(GOFILES) certs/key.pem
|
slack-status: $(GOFILES) certs
|
||||||
go build -o $(OUTPUT)
|
go build -o $(OUTPUT)
|
||||||
|
|
||||||
.PHONY: dist
|
.PHONY: dist
|
||||||
dist: $(DIST_TARGETS)
|
dist: $(DIST_TARGETS)
|
||||||
|
|
||||||
$(DIST_TARGETS): $(GOFILES) certs/key.pem
|
$(DIST_TARGETS): $(GOFILES) certs
|
||||||
@mkdir -p ./dist
|
@mkdir -p ./dist
|
||||||
GOOS=$(word 3, $(subst -, ,$(@))) GOARCH=$(word 4, $(subst -, ,$(@))) \
|
GOOS=$(word 3, $(subst -, ,$(@))) GOARCH=$(word 4, $(subst -, ,$(@))) \
|
||||||
go build \
|
go build \
|
||||||
-ldflags '-X "main.version=${VERSION}" -X "main.defaultClientID=$(CLIENT_ID)" -X "main.defaultClientSecret=$(CLIENT_SECRET)"' \
|
-ldflags '-X "main.version=${VERSION}" -X "main.defaultClientID=$(CLIENT_ID)" -X "main.defaultClientSecret=$(CLIENT_SECRET)"' \
|
||||||
-o $@
|
-o $@
|
||||||
|
|
||||||
|
.PHONY: certs
|
||||||
|
certs: certs/key.pem
|
||||||
certs/cert.pem: certs/key.pem
|
certs/cert.pem: certs/key.pem
|
||||||
certs/key.pem:
|
certs/key.pem:
|
||||||
mkdir -p certs/
|
mkdir -p certs/
|
||||||
|
Loading…
Reference in New Issue
Block a user