Skip to content

Commit 8c7d887

Browse files
feat(bootstrap): intro opslevel shell (#19)
* feat(bootstrap): intro opslevel shell * limit opslevel to tagged releases only * exit 0 - this is not an error
1 parent 3fcf5fc commit 8c7d887

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

shell/opslevel/upload.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/usr/bin/env bash
2+
#
3+
# This script uploads various build stats to OpsLevel.
4+
# At first, our plan is to upload Prisma Cloud image scan results
5+
# (vulnerabilities and compliance issues), more to come later.
6+
#
7+
8+
# We only upload to opslevel on tagged releases.
9+
if [[ -z $CIRCLE_TAG ]]; then
10+
echo "Skip OpsLevel upload since release tag is missing"
11+
exit 0
12+
fi

0 commit comments

Comments
 (0)