Add ci scripts to the project
[snf-image-creator] / ci / autopkg_debian.sh
1 #!/usr/bin/env sh
2 set -e
3
4 PACKAGES_DIR=$1
5
6 shift
7
8 TEMP_DIR=$(mktemp -d /tmp/devflow_autopkg_XXXXXXX)
9
10 # Create the packages
11 devflow-autopkg snapshot -b $TEMP_DIR $@
12
13 # MOVE the packages
14 mkdir -p $PACKAGES_DIR
15 mv -n $TEMP_DIR/* $PACKAGES_DIR
16
17 echo "Moved packages to: $(pwd)/$PACKAGES_DIR"
18