-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.milk.yml
54 lines (45 loc) · 1.76 KB
/
.milk.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
---
# chocomilk vars
# Package Changelog
changelog: "https://release-monitoring.org/api/v2/versions/?project_id=371767"
changelog_format: json
# Regex for Version
#version: "{{ register_changelog.json['latest_version'][0:7] }}"
#release monitoring is not listing the versions correctly, as workaround the version is hardcoded
version: "9.5.0"
# Download URL
url: 'https://github.com/PowerShell/Win32-OpenSSH/releases/download/v{{ version }}.0p1-Beta/OpenSSH-Win32-v{{ version }}.0.msi'
url64: 'https://github.com/PowerShell/Win32-OpenSSH/releases/download/v{{ version }}.0p1-Beta/OpenSSH-Win64-v{{ version }}.0.msi'
searchreplace:
"tools/chocolateyinstall.ps1":
- regwxp: (^\s*[$]*urlPackage\s*=\s*)('.*')
replace: "$urlPackage = '{{ url }}'"
- regwxp: (^\s*[$]*urlPackage64\s*=\s*)('.*')
replace: "$urlPackage64 = '{{ url64 }}'"
- regwxp: (^\s*[$]*checksumPackage\s*=\s*)('.*')
replace: "$checksumPackage = '{{ file_hash }}'"
- regwxp: (^\s*[$]*checksumPackage64\s*=\s*)('.*')
replace: "$checksumPackage64 = '{{ file64_hash }}'"
# readme to description
readme:
start: 4
end: 28
# deploy
deploy:
#- provider: chocolatey
# repository: "https://push.chocolatey.org/"
# key: "{{ lookup('env','CHOCOLATEY_ORG_API_KEY') }}"
- provider: github
name: "OpenCircle-Choco-Bot"
email: "[email protected]"
url: github.com/open-circle-ltd/chocolatey.Win32-OpenSSH.git
key: "{{ lookup('env','GITHUB_API_KEY') }}"
- provider: chocolatey
repository: "https://packages.ocrcl.ch/"
key: "{{ lookup('env','CHOCOWALL_PROD_API_KEY') }}"
# Notification
notifications:
- provider: mattermost
url: "https://chat.open-circle.ch"
key: "{{ lookup('env','MATTERMOST_API_KEY') }}"
channel: "notification-chocolatey"