Explicity named builded image as from docker.io

This commit is contained in:
Benjamin Renard 2023-08-08 14:48:23 +02:00
parent 8493b606ab
commit b7f46c38ac
Signed by: bn8
GPG key ID: 3E2E1CE1907115BC

View file

@ -10,7 +10,7 @@ Image with common dependencies to build Debian package of Python apps/libraries
To use it:
```bash
docker run -it -v "$(pwd)":/src -w /src brenard/debian-python-deb
docker run -it -v "$(pwd)":/src -w /src docker.io/brenard/debian-python-deb
```
## Build
@ -22,9 +22,9 @@ export COMPOSE_DOCKER_CLI_BUILD=1
for deb_version in 10 11 12
do
docker build -t brenard/debian-python-deb:debian${deb_version} -f Dockerfile.debian${deb_version} .
docker build -t docker.io/brenard/debian-python-deb:debian${deb_version} -f Dockerfile.debian${deb_version} .
done
docker build -t brenard/debian-python-deb:latest -f Dockerfile.debian${deb_version} .
docker build -t docker.io/brenard/debian-python-deb:latest -f Dockerfile.debian${deb_version} .
```
## Publish
@ -32,7 +32,7 @@ docker build -t brenard/debian-python-deb:latest -f Dockerfile.debian${deb_versi
```bash
for deb_version in 10 11 12
do
docker push brenard/debian-python-deb:debian${deb_version}
docker push docker.io/brenard/debian-python-deb:debian${deb_version}
done
docker push brenard/debian-python-deb:latest
docker push docker.io/brenard/debian-python-deb:latest
```