1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-21 13:23:07 +01:00
Files
dozzle/Makefile
Amir Raminfar b4e0afdb2c Adds authentication as a feature with simple username and password configuration (#1127)
* Starting work for auth

* Adds flags

* Does redirect

* Refactors code

* Adds vue templates

* Completes logic

* Cleans up some of the error messages

* Refactors

* Updates readme

* Updates titles

* Adds logout

* Cleans up imports
2021-04-08 08:29:58 -07:00

36 lines
704 B
Makefile

TAG := $(shell git describe --tags)
PLATFROMS := linux/amd64,linux/arm/v7,linux/arm64/v8
.PHONY: publish
publish:
docker buildx build --build-arg TAG=$(TAG) --platform $(PLATFROMS) -t amir20/dozzle:latest -t amir20/dozzle:$(TAG) --push .
.PHONY: clean
clean:
@rm -rf static
@go clean
.PHONY: static
static:
@yarn build
.PHONY: fake_static
fake_static:
@echo 'Skipping yarn build'
@mkdir -p static
@echo "yarn build was skipped" > static/index.html
.PHONY: test
test: fake_static
go test -cover ./...
build: static
CGO_ENABLED=0 go build -ldflags "-s -w"
dev:
yarn dev
int:
docker-compose -f integration/docker-compose.test.yml up --build --force-recreate --exit-code-from integration