Skip to content

Commit

Permalink
Witchcraft and sourcery (pypa#5774)
Browse files Browse the repository at this point in the history
Makefile step to build and push all images
  • Loading branch information
oz123 authored Jul 2, 2023
1 parent df647c3 commit 2e91338
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
7 changes: 7 additions & 0 deletions docker/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
ALL_PYVERSIONS = 3.11-alpine 3.10-alpine 3.9-alpine 3.8-alpine 3.11 3.10 3.9 3.8


ifneq (,$(wildcard ./.env))
include .env
export
Expand All @@ -11,3 +14,7 @@ docker-build:

docker-push:
docker push $(REGISTRY)/$(ORG)/$(IMG):$(TAG)


build-all:
$(foreach var,$(ALL_PYVERSIONS), make docker-build docker-push TAG=$(var)-$(PIPENV) PYVERSION=$(var) PIPENV=$(PIPENV);)
6 changes: 5 additions & 1 deletion docker/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Public docker images

Build with:
Build all images with:
```
$ make build-all PIPENV=2023.07.3
```
Build a single image with with:

```
$ make docker-build docker-push TAG=3.11-alpine-v2023-6-26 PYVERSION=3.11-alpine PIPENV=2023.6.26
Expand Down

0 comments on commit 2e91338

Please sign in to comment.