Skip to content

Commit c455cd3

Browse files
committed
Update make-zip-archive.sh to archive both components and stamp them by the date
1 parent dea52ef commit c455cd3

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

bin/make-zip-archive.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
11
#!/bin/sh -eu
22

3-
rm -f canary.zip && cd src/ && zip ../canary.zip index.js utils.js
3+
date_formatted=`date +%Y-%m-%d`
4+
5+
filename_canary="alertmanager-canary-$date_formatted.zip"
6+
filename_alertmanager="alertmanager-$date_formatted.zip"
7+
8+
(rm -f "$filename_canary" && cd alertmanager-canary/ && zip "../$filename_canary" index.js utils.js)
9+
10+
(rm -f "$filename_alertmanager" && cd alertmanager && zip "../$filename_alertmanager" index.js)

0 commit comments

Comments
 (0)