-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (29 loc) · 819 Bytes
/
Makefile
File metadata and controls
42 lines (29 loc) · 819 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
IMAGE_REF := ghcr.io/dualstacks/gitea-config-wave:local
VERSION := $(shell git describe --tags --always --dirty 2>/dev/null || echo "dev")
docker:
DOCKER_BUILDKIT=1 docker build -t $(IMAGE_REF) -f Dockerfile.goreleaser .
up-base:
docker compose up -d
down-base:
docker compose down
destroy-base:
docker compose down -v
build:
go build -ldflags "-X github.com/DUALSTACKS/gitea-config-wave/cmd.Version=$(VERSION)" -o gitea-config-wave .
version:
./gitea-config-wave --version
format:
go fmt ./...
vet:
go vet ./...
test: build up-test
go test -v ./test/integration/...
$(MAKE) down-test
x:
repomix
pull:
./gitea-config-wave pull DUALSTACKS/.gitea --config gitea-config-wave.yaml
push:
./gitea-config-wave push --config gitea-config-wave.yaml
release-test:
goreleaser release --snapshot --clean