-
Notifications
You must be signed in to change notification settings - Fork 15
/
build.sh
executable file
·32 lines (27 loc) · 977 Bytes
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash
# -----------------------------------------------------------------------------
# Easy!Appointments - Online Appointment Scheduler
#
# @package EasyAppointments
# @author A.Tselegidis <alextselegidis@gmail.com>
# @copyright Copyright (c) Alex Tselegidis
# @license https://opensource.org/licenses/GPL-3.0 - GPLv3
# @link https://easyappointments.org
# -----------------------------------------------------------------------------
##
# Build a docker image for an Easy!Appointments release.
#
# This script will create a new local Docker image for a tagged Easy!Appointments release, that has a zip package file
# attached to it on Github (see https://github.com/alextselegidis/easyappointments/releases).
#
# Usage:
#
# ./build.sh <version>
#
# Example:
#
# ./build.sh 1.5.0
#
DEFAULT_VERSION=1.5.0
VERSION="${1:-$DEFAULT_VERSION}"
docker build --tag easyappointments:${VERSION} --build-arg VERSION=${VERSION} --platform linux/amd64 .