12 lines
373 B
Bash
Executable File
12 lines
373 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
DOCKER_REGISTRY=${1:-localhost:5000}
|
|
|
|
docker image build -t ${DOCKER_REGISTRY}/laravel-php-fpm/php -f php/Dockerfile ./php
|
|
docker image build -t ${DOCKER_REGISTRY}/laravel-php-fpm/nginx -f nginx/Dockerfile ./nginx
|
|
|
|
[ -z "$1" ] && exit
|
|
|
|
docker image push ${DOCKER_REGISTRY}/laravel-php-fpm/php
|
|
docker image push ${DOCKER_REGISTRY}/laravel-php-fpm/nginx
|