From 9fd9c6ce5a52347c0537ee586380301cc293c9cd Mon Sep 17 00:00:00 2001 From: Varakh Date: Tue, 18 Jan 2022 23:31:56 +0100 Subject: [PATCH] Bump to 3.6.2 on PHP7 --- CHANGELOG.md | 4 ++++ README.md | 9 +-------- build.sh | 27 +++++++++++++++++++++++++++ 3 files changed, 32 insertions(+), 8 deletions(-) create mode 100755 build.sh diff --git a/CHANGELOG.md b/CHANGELOG.md index f2b5949..b95b8aa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # CHANGELOG +## 2022-01-18 + +* Updated to filebin `3.6.2` + ## 2021-01-30 * Updated docker image to include latest alpine package changes diff --git a/README.md b/README.md index b28462c..09153c1 100644 --- a/README.md +++ b/README.md @@ -153,11 +153,4 @@ Steps: * Build image * Push to registry or use locally -Example: - -``` -export FILEBIN_VERSION=3.6.0; -mkdir -p build; -git clone --branch ${FILEBIN_VERSION} https://github.com/Bluewind/filebin --depth=1 build/; -sudo docker build --no-cache -t varakh/filebin:${FILEBIN_VERSION} -t varakh/filebin:latest .; -``` +Call `build.sh` and export `FB_VERSION=$versionTag` before, e.g. `FB_VERSION=3.6.2`. diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..cb7f12d --- /dev/null +++ b/build.sh @@ -0,0 +1,27 @@ +#!/usr/bin/env bash + +set -e; + +if [[ -v FB_VERSION ]]; then + echo "Processing with version ${FB_VERSION}" +else + echo "Set FB_VERSION before calling this script" + exit 1; +fi + +BUILD_DIR="build" + +if [[ ! -d "${BUILD_DIR}" ]]; then + mkdir -p "${BUILD_DIR}"; + echo "Created ${BUILD_DIR}" +else + rm -rf "${BUILD_DIR}"; + mkdir -p "${BUILD_DIR}"; + echo "Re-created ${BUILD_DIR}" +fi + +git clone --branch ${FB_VERSION} https://github.com/Bluewind/filebin --depth=1 "${BUILD_DIR}"; +sudo docker build --no-cache -t varakh/filebin:${FB_VERSION} -t varakh/filebin:latest .; + + +