File size: 575 Bytes
3cc1e25
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env bash

VERSION=dev
GIT_COMMIT=dev

echo "Docker builds from the repo, not this dir. Make sure changes are pushed to the repo."
echo "Building version: $VERSION"
# wait 2 seconds
sleep 2

# Build the image with cache busting
docker build --build-arg CACHEBUST=$(date +%s) -t aitoolkit:$VERSION -f docker/Dockerfile .

# Tag with version and latest
docker tag aitoolkit:$VERSION ostris/aitoolkit:$VERSION

# Push both tags
echo "Pushing images to Docker Hub..."
docker push ostris/aitoolkit:$VERSION

echo "Successfully built and pushed ostris/aitoolkit:$VERSION"