added build & push

This commit is contained in:
andreas
2023-04-09 20:48:49 +00:00
parent 820d8f71d7
commit e7ef8f4496
23 changed files with 100 additions and 427 deletions

14
build_push Normal file
View File

@@ -0,0 +1,14 @@
#!/usr/bin/bash
# build and push images (using compose)
docker compose build
# docker compose build --no-cache
docker compose push
# build and push images (just with docker)
# find . -name Dockerfile | while read P; do sed -e 's|\./\(.*\)/Dockerfile|\1|'; done >builds.tmp
# export TAG=1.0
# cat builds.tmp | while read P; do \
# docker build -t $P ./$P; \
# docker tag $P:latest baloan/$P:latest; \
# docker tag $P:latest baloan/$P:$TAG; \
# docker push baloan/$P:latest; \
# done