Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
33 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/bash | ||
|
||
readonly DEST="${1:-snapshots}" | ||
|
||
main() { | ||
local var | ||
local file | ||
|
||
for var in PACKAGE OS DIST | ||
do | ||
if [ -z ${!var} ] | ||
then | ||
echo "ERROR: environment variable [${var}] must be set." | ||
exit 1 | ||
fi | ||
done | ||
|
||
for file in build/*.${PACKAGE} | ||
do | ||
echo "Pushing $file to cloudsmith..." | ||
cloudsmith push ${PACKAGE} asbru-cm/${DEST}/${OS}/${DIST} $file | ||
done | ||
|
||
if [ $PACKAGE == "deb" ] | ||
then | ||
echo "Pushing DSC files to cloudsmith..." | ||
cloudsmith push ${PACKAGE} asbru-cm/${DEST}/${OS}/${DIST} build/*.dsc --sources-file build/*.debian.tar.xz | ||
fi | ||
} | ||
main |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.