Skip to content

Instantly share code, notes, and snippets.

@kaspergrubbe
Created August 30, 2018 13:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kaspergrubbe/898ddc272e57b5ebd37934afc63d4701 to your computer and use it in GitHub Desktop.
Save kaspergrubbe/898ddc272e57b5ebd37934afc63d4701 to your computer and use it in GitHub Desktop.
#!/bin/bash
set -euxo pipefail
LABEL maintainer="docker@kaspergrubbe.com"
REPOOWNER="kaspergrubbe"
REPONAME="grubruby-jemalloc"
VERSION="2.5.1"
echo "Building and pushing ${REPOOWNER}/${REPONAME} version ${VERSION}" \
&& docker build -t ${REPONAME}:${VERSION} -f Dockerfile . \
&& docker tag ${REPONAME}:${VERSION} ${REPOOWNER}/${REPONAME}:${VERSION} \
&& docker push ${REPOOWNER}/${REPONAME}:${VERSION}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment