Skip to content
Snippets Groups Projects
Commit 70eb08ea authored by Philipp Stadler's avatar Philipp Stadler
Browse files

chore: integrate docker build into Makefile

parent 59118eea
No related branches found
No related tags found
No related merge requests found
......@@ -9,6 +9,7 @@ PYTHON = PIPENV_VENV_IN_PROJECT=1 $(shell .venv/bin/python-libfaketime | sed 's
PYTHON_NEEDED := .venv/.project
endif
# all except publishing on docker hub
.PHONY: all
all: check
......@@ -19,3 +20,27 @@ check: $(PYTHON_NEEDED)
.venv/.project: Pipfile Pipfile.lock
PIPENV_VENV_IN_PROJECT=1 pipenv install
touch $@
.PHONY: publish
publish: publish-image publish-test-image
.PHONY: publish-image
publish-image: image
docker push durcheinander/export-apkgs:$(file < version.txt)
docker push durcheinander/export-apkgs:latest
.PHONY: publish-test-image
publish-test-image: test-image
docker push durcheinander/export-apkgs-test-runner:$(file < version.txt)
docker push durcheinander/export-apkgs-test-runner:latest
.PHONY: images
images: image test-image
.PHONY: image
image:
docker build . -t durcheinander/export-apkgs:$(file < version.txt) -t durcheinander/export-apkgs:latest
.PHONY: test-image
test-image:
docker build export-apkgs-test-runner -t durcheinander/export-apkgs-test-runner:$(file < export-apkgs-test-runner/version.txt) -t durcheinander/export-apkgs-test-runner:latest
1.0.0
1.0.0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment