...
 
Commits (2)
......@@ -22,10 +22,12 @@ do
# Copy shared files
cp -rp shared/* "$VERSION/"
# Build Image
docker pull "$BUILD_IMAGE_BASE:$VERSION" || echo "No version exists yet"
docker build --pull -t "$BUILD_IMAGE_BASE:$VERSION" "$VERSION"
docker push "$BUILD_IMAGE_BASE:$VERSION"
done
# Build latest image
docker pull "$BUILD_IMAGE_BASE:latest" || echo "No version exists yet"
docker build --pull -t "$BUILD_IMAGE_BASE:latest" "$LATEST_VERSION"
docker push "$BUILD_IMAGE_BASE:latest"