This repository has been archived on 2021-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
Dockerfiles/standardnotes/builder.sh

15 lines
437 B
Bash
Executable File

#!/bin/sh
COMMIT_ID=$(git log -n 1 --pretty=format:%H -- standardnotes/)
LAST_COMMIT_ID=$(git log -n 1 --pretty=format:%H --)
if [ "$COMMIT_ID" == "$LAST_COMMIT_ID" ]; then
echo "build image"
docker build -t registry.dryusdan.fr/dryusdan/standardnotes standardnotes/
docker push registry.dryusdan.fr/dryusdan/standardnotes
docker rmi registry.dryusdan.fr/dryusdan/standardnotes
else
echo "image is recent. No build"
fi