File tree Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 3
3
<package xmlns =" http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd" >
4
4
<metadata >
5
5
<id >functions</id >
6
- <version >0.2.36 </version >
6
+ <version >0.2.57 </version >
7
7
<packageSourceUrl >https://github.com/iron-io/functions</packageSourceUrl >
8
8
9
9
<title >Iron.io Functions (Install)</title >
Original file line number Diff line number Diff line change 2
2
3
3
$packageName = ' functions'
4
4
$toolsDir = " $ ( Split-Path - parent $MyInvocation.MyCommand.Definition ) "
5
- $url = ' https://github.com/iron-io/functions/releases/download/0.2.25 /fn.exe'
5
+ $url = ' https://github.com/iron-io/functions/releases/download/0.2.57 /fn.exe'
6
6
# $fileLocation = Join-Path $toolsDir 'NAME_OF_EMBEDDED_INSTALLER_FILE'
7
7
# $fileLocation = '\\SHARE_LOCATION\to\INSTALLER_FILE'
8
8
Original file line number Diff line number Diff line change 4
4
user=" iron"
5
5
service=" functions"
6
6
version_file=" api/version/version.go"
7
+ # Chocolatey specific files
8
+ chocolatey_spec_file=" fn/chocolatey/functions.nuspec"
9
+ chocolatey_install_file=" fn/chocolatey/tools/chocolateyinstall.ps1"
10
+
7
11
tag=" latest"
8
12
9
13
if [ -z $( grep -m1 -Eo " [0-9]+\.[0-9]+\.[0-9]+" $version_file ) ]; then
@@ -15,6 +19,12 @@ perl -i -pe 's/\d+\.\d+\.\K(\d+)/$1+1/e' $version_file
15
19
version=$( grep -m1 -Eo " [0-9]+\.[0-9]+\.[0-9]+" $version_file )
16
20
echo " Version: $version "
17
21
22
+ # Update chocolatey version
23
+ sed ' s|<version>.*</version>|<version>' $version ' </version>|' $chocolatey_spec_file > " $chocolatey_spec_file .tmp"
24
+ mv " $chocolatey_spec_file .tmp" $chocolatey_spec_file
25
+ sed ' s|https://github.com/iron-io/functions/releases/download/.*/fn.exe|https://github.com/iron-io/functions/releases/download/' $version ' /fn.exe|' $chocolatey_install_file > " $chocolatey_install_file .tmp"
26
+ mv " $chocolatey_install_file .tmp" $chocolatey_install_file
27
+
18
28
make docker-build
19
29
20
30
sed " s/release=.*/release=\" $version \" /g" fn/install.sh > fn/install.sh.tmp
You can’t perform that action at this time.
0 commit comments