#!/bin/bash -e

echo "$CIRCLE_TAG"

if [ "$CIRCLE_TAG" != "" ]; then
  gem install package_cloud
  package_cloud push Hypriot/rpi/debian/stretch output/*/raspberrypi-kernel*.deb
else
  echo "No release tag detected. Skip deployment."
fi

#!/bin/bash -e

echo "$CIRCLE_TAG"

if [ "$CIRCLE_TAG" != "" ]; then
  gem install package_cloud
  package_cloud push Hypriot/rpi/debian/jessie output/*/*.deb
else
  echo "No release tag detected. Skip deployment."
fi

--- 
+++ 
@@ -4,7 +4,7 @@
 
 if [ "$CIRCLE_TAG" != "" ]; then
   gem install package_cloud
-  package_cloud push Hypriot/rpi/debian/jessie output/*/*.deb
+  package_cloud push Hypriot/rpi/debian/stretch output/*/raspberrypi-kernel*.deb
 else
   echo "No release tag detected. Skip deployment."
 fi
Deploy only kernel + kernel headers deb packages
