mirror of
https://github.com/jkaninda/laravel-php-fpm.git
synced 2025-12-07 01:19:38 +01:00
Add tag based on folder
This commit is contained in:
12
build.sh
12
build.sh
@@ -1,9 +1,17 @@
|
||||
#!/usr/bin/env bash
|
||||
#!/bin/bash
|
||||
if [ $# -eq 0 ]
|
||||
then
|
||||
tag='latest'
|
||||
else
|
||||
tag=$1
|
||||
fi
|
||||
if [ $tag != 'latest' ]
|
||||
then
|
||||
echo 'Build from from tag'
|
||||
docker build -f docker/${tag}/Dockerfile -t jkaninda/laravel-php-fpm:$tag .
|
||||
else
|
||||
echo 'Build latest'
|
||||
docker build -f docker/8.1/Dockerfile -t jkaninda/laravel-php-fpm:$tag .
|
||||
|
||||
fi
|
||||
|
||||
docker build -t jkaninda/laravel-php-fpm:$tag .
|
||||
|
||||
Reference in New Issue
Block a user