-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy path.milk.yml
42 lines (35 loc) · 1.22 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
---
# chocomilk vars
# Package Changelog
changelog: "https://release-monitoring.org/api/v2/versions/?project_id=21215"
changelog_format: json
# Regex for Version
version: "{{ register_changelog.json['stable_versions'][0] }}"
# Download URL
url: "https://download.microsoft.com/download/2/7/A/27AF1BE6-DD20-4CB4-B154-EBAB8A7D4A7E/officedeploymenttool_{{ version.split('.')[-2:] | join('-') }}.exe"
searchreplace:
"tools/chocolateyinstall.ps1":
- regwxp: (^\s*[$]*urlPackage\s*=\s*)('.*')
replace: "$urlPackage = '{{ url }}'"
- regwxp: (^\s*[$]*checksumPackage\s*=\s*)('.*')
replace: "$checksumPackage = '{{ file_hash }}'"
# readme to description
readme:
start: 6
end: 38
# deploy
deploy:
- provider: chocolatey
repository: "https://push.chocolatey.org/"
key: "{{ lookup('env','CHOCOLATEY_ORG_API_KEY') }}"
- provider: github
name: "OpenCircle-Choco-Bot"
email: "chocomilk@open-circle.ch"
url: github.com/open-circle-ltd/chocolatey.microsoft-office-deployment.git
key: "{{ lookup('env','GITHUB_API_KEY') }}"
# Notification
notifications:
- provider: mattermost
url: "https://chat.open-circle.ch"
key: "{{ lookup('env','MATTERMOST_API_KEY') }}"
channel: "notification-chocolatey"