Witchcraft and sourcery (#5774)

Makefile step to build and push all images
This commit is contained in:
Oz Tiram
2023-07-02 23:19:20 +02:00
committed by GitHub
parent df647c378e
commit 2e913386cc
2 changed files with 12 additions and 1 deletions
+7
View File
@@ -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
@@ -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);)
+5 -1
View File
@@ -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