-
Notifications
You must be signed in to change notification settings - Fork 3
203 lines (199 loc) · 10.3 KB
/
Azure-CreateRelease.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
# This is a basic workflow to help you get started with Actions
name: Azure Release Workflow
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the main branch
release:
types: [created]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
azure-release:
if: "endsWith(github.event.release.tag_name, 'azure') || endsWith(github.event.release.tag_name, 'all')"
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout Code
uses: actions/checkout@v2
- name: Create Build Directory
run: mkdir ${GITHUB_WORKSPACE}/build
# Runs a set of commands using the runners shell
- name: Build BYOL Combined Package
run: |
bash ${GITHUB_WORKSPACE}/azure/CouchbaseServerAndSyncGateway-Application/makeArchives.sh \
-l byol \
-s byol_2019 \
-p couchbase \
-o couchbase-server-enterprise \
-v 18.4.0 \
-g couchbase-sync-gateway-enterprise \
-i 18.4.0 \
-u byol_2019 \
-z
- name: Build Hourly Combined Package
run: |
bash ${GITHUB_WORKSPACE}/azure/CouchbaseServerAndSyncGateway-Application/makeArchives.sh \
-l hourly-pricing \
-s hourly_pricing_mar19 \
-p couchbase \
-o couchbase-server-enterprise \
-v 18.4.0 \
-g couchbase-sync-gateway-enterprise \
-i 18.4.0 \
-u hourly_pricing_mar19 \
-z
- name: Build BYOL CBS Package
run: |
bash ${GITHUB_WORKSPACE}/azure/CouchbaseServer-Application/makeArchives.sh \
-l byol \
-s cbs-2022-byol-pre-installed \
-p couchbase \
-o couchbase-server-enterprise \
-v latest \
-z
- name: Build Hourly CBS Package - Silver Support
run: |
bash ${GITHUB_WORKSPACE}/azure/CouchbaseServer-Application/makeArchives.sh \
-l cbs-oct-2022-silver-support \
-s cbs-server-silver \
-p couchbase \
-o couchbase-server-enterprise \
-v latest \
-z
- name: Build Unlicensed CBS Package
run: |
bash ${GITHUB_WORKSPACE}/azure/CouchbaseServer-Application/makeArchives.sh \
-u \
-s cbs-2022-byol-pre-installed \
-p couchbase \
-o couchbase-server-enterprise \
-v latest \
-z
- name: Build BYOL Gateway Package
run: |
bash ${GITHUB_WORKSPACE}/azure/CouchbaseSyncGateway-Application/makeArchives.sh \
-l byol \
-p couchbase \
-g couchbase-sync-gateway-enterprise \
-i latest \
-s cb-gateway-2022-pre-installed-byol \
-z
- name: Build Hourly Gateway Package - Gold Support
run: |
bash ${GITHUB_WORKSPACE}/azure/CouchbaseSyncGateway-Application/makeArchives.sh \
-l hourly-pricing-gold-support \
-p couchbase \
-g couchbase-sync-gateway-enterprise \
-i latest \
-s cb-gateway-2022-pre-installed-gold \
-z
- name: Build Hourly Gateway Package - Silver Support
run: |
bash ${GITHUB_WORKSPACE}/azure/CouchbaseSyncGateway-Application/makeArchives.sh \
-l hourly-pricing-silver-support \
-p couchbase \
-g couchbase-sync-gateway-enterprise \
-i latest \
-s cb-gateway-2022-pre-installed-silver \
-z
- name: Build Unlicensed Gateway Package
run: |
bash ${GITHUB_WORKSPACE}/azure/CouchbaseSyncGateway-Application/makeArchives.sh \
-u \
-p couchbase \
-g couchbase-sync-gateway-enterprise \
-i latest \
-s cb-gateway-2022-pre-installed-byol \
-z
- name: Upload Combined BYOL Package
id: upload-combined-byol-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./build/azure/CouchbaseServerAndSyncGateway/azure-combined-archive-byol.zip
asset_name: azure-combined-archive-byol.zip
asset_content_type: application/zip
- name: Upload Combined Hourly Package
id: upload-combined-hourly-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./build/azure/CouchbaseServerAndSyncGateway/azure-combined-archive-hourly-pricing.zip
asset_name: azure-combined-archive-hourly-pricing.zip
asset_content_type: application/zip
- name: Upload CBS BYOL Package
id: upload-cbs-byol-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./build/azure/CouchbaseServer/azure-cbs-archive-byol.zip
asset_name: azure-cbs-archive-byol.zip
asset_content_type: application/zip
- name: Upload CBS Hourly Package - Silver
id: upload-cbs-hourly-asset-silver
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./build/azure/CouchbaseServer/azure-cbs-archive-cbs-oct-2022-silver-support.zip
asset_name: azure-cbs-archive-hourly-pricing-silver-support.zip
asset_content_type: application/zip
- name: Upload CBS Unlicensed Package
id: upload-cbs-unlicensed-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./build/azure/CouchbaseServer/azure-cbs-archive-unlicensed.zip
asset_name: azure-cbs-archive-unlicensed.zip
asset_content_type: application/zip
- name: Upload Gateway BYOL Package
id: upload-sg-byol-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./build/azure/CouchbaseSyncGateway/azure-sg-archive-byol.zip
asset_name: azure-sg-archive-byol.zip
asset_content_type: application/zip
- name: Upload Gateway Hourly Package - Silver
id: upload-sg-hourly-asset-silver
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./build/azure/CouchbaseSyncGateway/azure-sg-archive-hourly-pricing-silver-support.zip
asset_name: azure-sg-archive-hourly-pricing-silver-support.zip
asset_content_type: application/zip
- name: Upload Gateway Hourly Package - Gold
id: upload-sg-hourly-asset-gold
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./build/azure/CouchbaseSyncGateway/azure-sg-archive-hourly-pricing-gold-support.zip
asset_name: azure-sg-archive-hourly-pricing-gold-support.zip
asset_content_type: application/zip
- name: Upload Gateway Unlicensed Package
id: upload-sg-unlicensed-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./build/azure/CouchbaseSyncGateway/azure-sg-archive-unlicensed.zip
asset_name: azure-sg-archive-unlicensed.zip
asset_content_type: application/zip