Refactoring

This commit is contained in:
2023-01-04 18:04:25 +02:00
parent a8d5124256
commit d25ff2068d
8 changed files with 355 additions and 34 deletions

View File

@@ -1,9 +1,16 @@
#!/usr/bin/env bash
#!/bin/bash
if [ $# -eq 0 ]
then
tag='latest'
else
tag=$1
fi
docker build -t jkaninda/nginx-php-fpm:$tag .
if [ $tag != 'latest' ]
then
echo 'Build from tag'
docker build -f docker/${tag}/Dockerfile -t jkaninda/nginx-php-fpm:$tag .
else
echo 'Build latest'
docker build -f docker/8.2/Dockerfile -t jkaninda/nginx-php-fpm:$tag .
fi