Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 472 Bytes

README.md

File metadata and controls

14 lines (11 loc) · 472 Bytes

Build, tag and push to a registry

# Docker Hub Login
docker login

# Create and tag Docker-Image
ORG=<Your organisation name at Docker Hub>
TAG=$(git describe --tags --long | sed -e 's/-g[0-9a-f]\{7,\}$//' -e 's/-\([0-9]\+\)$/.\1/')
docker build --build-arg VERSION=$TAG -t $ORG/debian-tuxbox-base:$TAG -t $ORG/debian-tuxbox-base:latest .

# Push Images to Docker Hub
docker push $ORG/debian-tuxbox-base:$TAG && docker push $ORG/debian-tuxbox-base:latest