added build & push
This commit is contained in:
14
build_push
Normal file
14
build_push
Normal 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
|
||||
Reference in New Issue
Block a user