-
Notifications
You must be signed in to change notification settings - Fork 0
/
.milk.yml
51 lines (44 loc) · 1.73 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
---
# chocomilk vars
# Package Changelog
changelog: 'https://release-monitoring.org/api/v2/projects/?name=Synology%20ActiveBackup%20for%20Business%20Agent'
# Regex for Version
version: "{{ register_changelog.content |
regex_search('([0-9]+.[0-9]+.[0-9]+-[0-9]+)')
}}"
# Download URL
url: 'https://global.download.synology.com/download/Tools/ActiveBackupBusinessAgent/{{ version }}/Windows/i686/Synology%20Active%20Backup%20for%20Business%20Agent-{{ version }}-x86.msi'
url64: 'https://global.download.synology.com/download/Tools/ActiveBackupBusinessAgent/{{ version }}/Windows/x86_64/Synology%20Active%20Backup%20for%20Business%20Agent-{{ version }}-x64.msi'
searchreplace:
'tools/chocolateyinstall.ps1':
- regwxp: (^\s*[$]*url\s*=\s*)('.*')
replace: 'url = "{{ url }}"'
- regwxp: (^\s*[$]*url64\s*=\s*)('.*')
replace: 'url64 = "{{ url64 | default()}}"'
- regwxp: (^\s*[$]*checksum\s*=\s*)('.*')
replace: 'checksum = "{{ file_hash }}"'
- regwxp: (^\s*[$]*checksum64\s*=\s*)('.*')
replace: 'checksum64 = "{{ file64_hash | default() }}"'
# readme to description
readme:
start: 5
end: 13
# deploy
deploy:
- provider: chocolatey
repository: 'https://nuget.itigo.tech/upload'
key: "{{ lookup('env','CHOCOLATEY_ITIGO_API_KEY') }}"
- provider: chocolatey
repository: 'https://push.chocolatey.org/'
key: "{{ lookup('env','CHOCOLATEY_ORG_API_KEY') }}"
- provider: github
name: 'itigo-bot'
email: '[email protected]'
url: github.com/itigoag/chocolatey.airtame.git
key: "{{ lookup('env','GITHUB_API_KEY') }}"
# Notification
notifications:
- provider: mattermost
url: 'https://matters.itigo.tech'
key: "{{ lookup('env','MATTERMOST_API_KEY') }}"
channel: 'software-packages'