You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
312 B

#!/bin/bash
VERSION=$(git log -1 --pretty=%h)
REPO="dockerhub.kube:5000/desteg:"
TAG="$REPO$VERSION"
LATEST="${REPO}latest"
TS=$( date '+%F_%H:%M:%S' )
docker build -t "$TAG" -t "$LATEST" --build-arg VERSION="$VERSION" --build-arg BUILD_TIMESTAMP="$BUILD_TIMESTAMP" .
docker push "$TAG"
docker push "$LATEST"