Skip to content

Commit 38460ed

Browse files
authored
feat!: migrate ARM template to use GitHub releases (#76)
BREAKING CHANGE: ARM template now deploys from GitHub releases v3.0.0 instead of S3 bucket (v2.0.2). This includes the OpenTelemetry SDK rewrite, updated Coralogix ingress endpoints, EventHub consumer group support, and Node.js 22 runtime.
1 parent 810f15b commit 38460ed

File tree

4 files changed

+12
-20
lines changed

4 files changed

+12
-20
lines changed

.github/workflows/release.yaml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on:
44
push:
55
branches:
66
- "master"
7-
workflow_dispatch:
87

98
permissions:
109
contents: write
@@ -43,34 +42,29 @@ jobs:
4342
run: npm run build
4443

4544
- name: Install func extensions
45+
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
4646
working-directory: ./${{ matrix.package }}
4747
run: func extensions install
4848

4949
- name: Prune to production dependencies
50+
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
5051
working-directory: ./${{ matrix.package }}
5152
run: npm prune --production
5253

5354
- name: Zip build artifact
55+
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
5456
working-directory: ./${{ matrix.package }}
5557
run: |
5658
zip -r ${{ matrix.package }}-FunctionApp.zip . -x ".*"
5759
5860
- name: Reinstall devDependencies for semantic-release
61+
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
5962
working-directory: ./${{ matrix.package }}
6063
run: npm install --only=dev
6164

6265
- name: Run semantic-release
66+
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
6367
working-directory: ./${{ matrix.package }}
64-
run: npx semantic-release
6568
env:
6669
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
67-
68-
- name: Read version
69-
working-directory: ./${{ matrix.package }}
70-
id: get_version
71-
run: |
72-
version=$(cat .release_version)
73-
echo "version=$version" >> $GITHUB_OUTPUT
74-
75-
- name: Echo Version
76-
run: echo "Version ${{ steps.get_version.outputs.version }} for ${{ matrix.package }}"
70+
run: npx semantic-release

EventHub/ARM/EventHubV2.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
"applicationInsightsName": "[variables('functionAppName')]",
102102
"storageAccountName": "[format('azfunctions{0}', uniqueString(resourceGroup().id))]",
103103
"location": "[resourceGroup().location]",
104-
"packageUri": "https://coralogix-public.s3.eu-west-1.amazonaws.com/azure-functions-repo/EventHub.zip",
104+
"packageUri": "https://github.com/coralogix/coralogix-azure-serverless/releases/download/EventHub-v3.0.0/EventHub-FunctionApp.zip",
105105
"sku": "[if(equals(parameters('FunctionAppServicePlanType'), 'Consumption'), 'Y1', 'EP1')]"
106106
},
107107
"resources": [

EventHub/README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,15 @@ The Azure EventHub integration allows parsing of queue messages in JSON format.
1010

1111
* A configured EventHub Instance to monitor.
1212

13+
* A Coralogix account with a Send Your Data API Key.
14+
1315
## Azure Resource Manager Template Deployment
1416

15-
The EventHub integration can be deployed by clicking the link below and signing into your Azure account:
17+
### Deploy via Azure Portal
1618

17-
[![Deploy to Azure](https://aka.ms/deploytoazurebutton)](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2Fcoralogix%2Fcoralogix-azure-serverless%2Fmaster%2FEventHub%2FARM%2FEventHub.json)
19+
Deploy the EventHub integration by clicking the button below and signing into your Azure account:
1820

21+
[![Deploy to Azure](https://aka.ms/deploytoazurebutton)](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2Fcoralogix%2Fcoralogix-azure-serverless%2Fmaster%2FEventHub%2FARM%2FEventHubV2.json)
1922

2023
## Fields
2124

EventHub/release.config.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,9 @@ module.exports = {
44
plugins: [
55
'@semantic-release/commit-analyzer',
66
'@semantic-release/release-notes-generator',
7-
['@semantic-release/changelog', { changelogFile: 'CHANGELOG.md' }],
87
['@semantic-release/exec', {
98
successCmd: 'echo ${nextRelease.version} > .release_version'
109
}],
11-
['@semantic-release/git', {
12-
assets: ['CHANGELOG.md', '.release_version', "package.json"],
13-
message: 'chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}'
14-
}],
1510
['@semantic-release/github', {
1611
assets: [
1712
{ path: 'EventHub-FunctionApp.zip', label: 'EventHub FunctionApp Artifact' }

0 commit comments

Comments
 (0)