-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
47 lines (38 loc) · 1.23 KB
/
Makefile
File metadata and controls
47 lines (38 loc) · 1.23 KB
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
43
44
45
46
47
.PHONY: dist docker
help:
@echo
@echo "GOALS"
@echo " clean - deletes the dist directory and egg-info"
@echo " dist - creates the distribution package (wheel)"
@echo " format - runs Black and isort"
@echo " test-deploy - deploys to test.pypi.org"
@echo " deploy - deploys to pypi.org"
@echo " docker - builds the Docker image"
@echo " push-docker - push images to docker.io"
@echo " push-quay - push images to quay.io"
@echo
dist:
python3 -m build
clean:
@rm -rf dist/ build/ gxabm.egg-info/
format:
black -S abm/
isort abm/
test-deploy:
twine upload -r pypitest dist/*
deploy:
twine upload -r pypi dist/*
docker:
$(eval VERSION := $(shell cat abm/VERSION))
docker build --platform linux/amd64 -t ksuderman/gxabm:$(VERSION) -t ksuderman/gxabm:latest .
docker build --platform linux/amd64 -t quay.io/galaxyproject/abm:$(VERSION) -t quay.io/galaxyproject/abm:latest .
push-docker:
$(eval VERSION := $(shell cat abm/VERSION))
docker push ksuderman/gxabm:$(VERSION)
docker push ksuderman/gxabm:latest
push-quay:
$(eval VERSION := $(shell cat abm/VERSION))
docker push quay.io/galaxyproject/abm:$(VERSION)
docker push quay.io/galaxyproject/abm:latest
#tag:
# bin/tag.sh