Skip to content

[otel-infrastructure-collector] update otel-helm-chart to 0.71.0 (#278) #17

[otel-infrastructure-collector] update otel-helm-chart to 0.71.0 (#278)

[otel-infrastructure-collector] update otel-helm-chart to 0.71.0 (#278) #17

name: OpenTelemetry-Infrastructure-Collector-Chart
on:
push:
branches: master
paths:
- 'otel-infrastructure-collector/k8s-helm/**'
env:
CHART_VERSION: $(yq eval '.version' otel-infrastructure-collector/k8s-helm/Chart.yaml)
CHART_NAME: otel-infrastructure-collector
ARTIFACTORY_URL: https://cgx.jfrog.io/artifactory/
ARTIFACTORY_USERNAME: integrations-actions
jobs:
build:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/[email protected]
-
name: Setup Helm Repo
run: |
helm repo add coralogix-charts-virtual ${{ env.ARTIFACTORY_URL }}coralogix-charts-virtual --username ${{ env.ARTIFACTORY_USERNAME }} --password ${{ secrets.ARTIFACTORY_NONUSER_ACCESS_TOKEN }}
helm repo add opentelemetry https://open-telemetry.github.io/opentelemetry-helm-charts
helm repo update
helm dependency build ./otel-infrastructure-collector/k8s-helm/
cd otel-infrastructure-collector/k8s-helm
helm package .
-
name: Setup JFrog CLI
uses: jfrog/[email protected]
with:
version: 2.12.1
-
name: use-jfrog-cli
run: |
cd otel-infrastructure-collector/k8s-helm
jfrog rt upload --access-token ${{ secrets.ARTIFACTORY_NONUSER_ACCESS_TOKEN }} "${{ env.CHART_NAME }}-*.tgz" coralogix-charts --url ${{ env.ARTIFACTORY_URL }}