Updated Makefile
Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
This commit is contained in:
parent
941f6a1304
commit
0c796cad59
12
Makefile
12
Makefile
@ -1,6 +1,6 @@
|
|||||||
.DEFAULT_GOAL := default
|
.DEFAULT_GOAL := default
|
||||||
|
|
||||||
IMAGE ?= rg.fr-par.scw.cloud/averagemarcus-private/marcusnoble:latest
|
IMAGE ?= rg.fr-par.scw.cloud/averagemarcus/marcusnoble:latest
|
||||||
|
|
||||||
.PHONY: test # Run all tests, linting and format checks
|
.PHONY: test # Run all tests, linting and format checks
|
||||||
test: lint check-format run-tests
|
test: lint check-format run-tests
|
||||||
@ -23,11 +23,11 @@ run-tests:
|
|||||||
|
|
||||||
.PHONY: fetch-deps # Fetch all project dependencies
|
.PHONY: fetch-deps # Fetch all project dependencies
|
||||||
fetch-deps:
|
fetch-deps:
|
||||||
@echo "⚠️ 'fetch-deps' unimplemented"
|
@go mod tidy
|
||||||
|
|
||||||
.PHONY: build # Build the project
|
.PHONY: build # Build the project
|
||||||
build: lint check-format fetch-deps
|
build: lint check-format fetch-deps
|
||||||
@echo "⚠️ 'build' unimplemented"
|
@go build .
|
||||||
|
|
||||||
.PHONY: docker-build # Build the docker image
|
.PHONY: docker-build # Build the docker image
|
||||||
docker-build:
|
docker-build:
|
||||||
@ -38,8 +38,8 @@ docker-publish:
|
|||||||
@docker push $(IMAGE)
|
@docker push $(IMAGE)
|
||||||
|
|
||||||
.PHONY: run # Run the application
|
.PHONY: run # Run the application
|
||||||
run: docker-build
|
run:
|
||||||
@docker run --rm -it -p 8080:80 -v $$(pwd)/src:/usr/share/nginx/html $(IMAGE)
|
@go run .
|
||||||
|
|
||||||
.PHONY: ci # Perform CI specific tasks to perform on a pull request
|
.PHONY: ci # Perform CI specific tasks to perform on a pull request
|
||||||
ci:
|
ci:
|
||||||
@ -47,7 +47,7 @@ ci:
|
|||||||
|
|
||||||
.PHONY: release # Release the latest version of the application
|
.PHONY: release # Release the latest version of the application
|
||||||
release:
|
release:
|
||||||
@kubectl --context scaleway --namespace marcusnoble set image deployment marcusnoble web=rg.fr-par.scw.cloud/averagemarcus-private/marcusnoble:$(SHA)
|
@kubectl --context scaleway --namespace marcusnoble set image deployment marcusnoble web=rg.fr-par.scw.cloud/averagemarcus/marcusnoble:$(SHA)
|
||||||
|
|
||||||
.PHONY: help # Show this list of commands
|
.PHONY: help # Show this list of commands
|
||||||
help:
|
help:
|
||||||
|
Loading…
Reference in New Issue
Block a user