@@ -6,39 +6,60 @@ permissions:
66on :
77 release :
88 types : [released]
9+ workflow_dispatch :
10+ inputs :
11+ release_tag :
12+ description : ' Release tag to simulate (e.g. pipeline-control-gateway-1.2.3)'
13+ required : true
914
1015jobs :
1116 update-agent-metadata :
1217 name : Update metadata for ${{ matrix.chart }}
1318 runs-on : ubuntu-latest
19+ env :
20+ RELEASE_TAG : ${{ github.event.release.tag_name || github.event.inputs.release_tag }}
1421 strategy :
1522 matrix :
1623 include :
1724 - chart : nr-ebpf-agent
1825 agent-type : NReBPFAgent
1926 config-directory : charts/nr-ebpf-agent/.fleetControl
27+ monitoring-type : INFRA
28+ display-name : " New Relic eBPF Agent"
2029 - chart : nri-bundle
2130 agent-type : NRInfra
2231 config-directory : charts/nri-bundle/.fleetControl
32+ monitoring-type : INFRA
33+ display-name : " New Relic Infrastructure"
2334 - chart : nr-k8s-otel-collector
2435 agent-type : NRDOT
2536 config-directory : charts/nr-k8s-otel-collector/.fleetControl
37+ monitoring-type : INFRA
38+ display-name : " New Relic OpenTelemetry Collector"
2639 - chart : newrelic-logging
2740 agent-type : FluentBit
2841 config-directory : charts/newrelic-logging/.fleetControl
42+ monitoring-type : INFRA
43+ display-name : " Fluent Bit"
2944 - chart : pipeline-control-gateway
3045 agent-type : PipelineControlGateway
31- config-directory : charts/pipeline-control-gateway/.fleetControl
46+ config-directory : charts/pipeline-control-gateway/.fleetControl/pipeline-control
47+ display-name : " Pipeline Control"
48+ - chart : pipeline-control-gateway
49+ agent-type : PipelineControlGatewayConfigMode
50+ config-directory : charts/pipeline-control-gateway/.fleetControl/pipeline-control-config-mode
51+ display-name : " Pipeline Control Gateway Config Mode"
3252 - chart : agent-control-deployment
3353 agent-type : NRAgentControl
3454 config-directory : charts/agent-control-deployment/.fleetControl
55+ display-name : " New Relic Agent Control"
3556 fail-fast : false
3657
3758 steps :
3859 - name : Check if release matches chart
3960 id : should-run
4061 run : |
41- TAG="${{ github.event.release.tag_name }}"
62+ TAG="${{ env.RELEASE_TAG }}"
4263 CHART="${{ matrix.chart }}"
4364 if [[ "$TAG" == "$CHART-"* ]]; then
4465 echo "match=true" >> $GITHUB_OUTPUT
5273 if : steps.should-run.outputs.match == 'true'
5374 uses : actions/checkout@v4
5475 with :
55- ref : ${{ github.event.release.tag_name }}
76+ ref : ${{ env.RELEASE_TAG }}
5677
5778 - name : Extract version from release tag or values.yaml
5879 if : steps.should-run.outputs.match == 'true'
6485 VERSION=$(yq '.image.tag' charts/${{ matrix.chart }}/values.yaml | tr -d '"')
6586 echo "Extracted version from '.image.tag' in values.yaml: $VERSION"
6687 else
67- VERSION="${{ github.event.release.tag_name }}"
88+ VERSION="${{ env.RELEASE_TAG }}"
6889 VERSION="${VERSION#${{ matrix.chart }}-}"
6990 echo "Extracted version from tag: $VERSION"
7091 fi
91112 newrelic-private-key : ${{ secrets.NEWRELIC_PRIVATE_KEY }}
92113 agent-type : ${{ matrix.agent-type }}
93114 version : ${{ steps.version.outputs.version }}
94- git-ref : ${{ github.event.release.tag_name }}
115+ git-ref : ${{ env.RELEASE_TAG }}
95116 config-directory : ${{ matrix.config-directory }}
117+ monitoring-type : ${{ matrix.monitoring-type }}
118+ display-name : ${{ matrix.display-name }}
96119 apm-control-nr-license-key : ${{ secrets.APM_CONTROL_NR_LICENSE_KEY_STAGING }}
0 commit comments