-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (34 loc) · 946 Bytes
/
Makefile
File metadata and controls
39 lines (34 loc) · 946 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
.SHELLFLAGS += -x -e
PWD = $(shell pwd)
UID = $(shell id -u)
GID = $(shell id -g)
all: clean update diff build
clean:
rm -rf authentik_client/ docs/ test/
update:
mv schema.yml schema-old.yml
cp ../authentik/schema.yml schema.yml
diff:
docker compose -f scripts/docker-compose.yml run --rm --user "${UID}:${GID}" diff \
--markdown \
/local/diff.test \
/local/schema-old.yml \
/local/schema.yml
rm schema-old.yml
mv diff.test /tmp/diff.test
echo "Update API Client" > diff.test
echo >> diff.test
echo >> diff.test
cat /tmp/diff.test >> diff.test
build:
ifndef version
$(error Usage: make build version=20xx.xx.xx)
endif
docker compose -f scripts/docker-compose.yml run --rm --user "${UID}:${GID}" gen \
generate \
-i /local/schema.yml \
-g python \
-o /local \
-c /local/config.yaml \
--additional-properties=packageVersion=$(version)
rm -f .travis.yml git_push.sh .gitlab-ci.yml .github/workflows/python.yml