Skip to content

Instantly share code, notes, and snippets.

Matthias Lohr MatthiasLohr

Block or report user

Report or block MatthiasLohr

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@MatthiasLohr
MatthiasLohr / docker-image-update-check.sh
Last active Feb 8, 2019
Execute script if new docker image is available
View docker-image-update-check.sh
#!/bin/bash
# Example usage:
# ./docker-image-update-check.sh gitlab/gitlab-ce update-gitlab.sh
IMAGE="$1"
COMMAND="$2"
echo "Fetching Docker Hub token..."
token=$(curl --silent "https://auth.docker.io/token?scope=repository:$IMAGE:pull&service=registry.docker.io" | jq -r '.token')
You can’t perform that action at this time.