diff script for docker base images
is my docker image up to date ?
wget https://raw.githubusercontent.com/bamdadsabbagh/docker-base-image-check/master/src/check.sh
chmod +x check.sh
# $1 is base image
# $2 is your docker image
# if image up to date, returns 0
# if image needs update, returns 1
#!/bin/bash
if src/check.sh nginx:alpine docker.pkg.github.com/bamdadsabbagh/bamdadsabbagh-www/bamdadsabbagh-www:latest; then
echo "images are up to date"
else
echo "image needs an update"
fi