10 lines
312 B
Bash
Executable file
10 lines
312 B
Bash
Executable file
#!/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"
|