summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2025-03-09 14:01:06 -0300
committerEuAndreh <eu@euandre.org>2025-03-09 17:03:32 -0300
commitdb7511ebd0cc9910db5a60ee7ab3b45a109d9b1e (patch)
treeea5220619a4de67c7076d56c402b98a677bbcf8e
parentsrc/cicd: Remove early exit (diff)
downloadcicd-db7511ebd0cc9910db5a60ee7ab3b45a109d9b1e.tar.gz
cicd-db7511ebd0cc9910db5a60ee7ab3b45a109d9b1e.tar.xz
src/cicd: Add unique buiuld id
-rwxr-xr-xsrc/cicd7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/cicd b/src/cicd
index 0378f16..0d75268 100755
--- a/src/cicd
+++ b/src/cicd
@@ -39,12 +39,15 @@ eval "$(assert-arg -- "$ACTION" 'ACTION')"
shift
-for r in "$@"; do
+for repo in "$@"; do
+ id="$(uuid)"
cat <<-EOF | q cicd-inbox in
- repo $r
+ repo $repo
+ id $id
now $(now)
deploy $DEPLOY
version $VERSION
refname $REFNAME
EOF
+ printf 'Enqueued with id %s for %s\n' "$repo" "$id"
done