CHORE Updated fluentbit deployments to new image (#402) #41
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: FluentBit-HTTP-Chart | |
on: | |
push: | |
branches: master | |
paths: | |
- 'logs/fluent-bit/k8s-helm/http/Chart.yaml' | |
- 'logs/fluent-bit/k8s-helm/http/values.yaml' | |
- 'logs/fluent-bit/k8s-helm/http/templates/**' | |
env: | |
CHART_VERSION: $(yq eval '.version' logs/fluent-bit/k8s-helm/http/Chart.yaml) | |
CHART_NAME: fluent-bit-http | |
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 update | |
helm dependency build ./logs/fluent-bit/k8s-helm/http/ | |
cd logs/fluent-bit/k8s-helm/http | |
helm package . | |
- | |
name: Setup JFrog CLI | |
uses: jfrog/[email protected] | |
with: | |
version: 2.12.1 | |
- | |
name: use-jfrog-cli | |
run: | | |
cd logs/fluent-bit/k8s-helm/http | |
jfrog rt upload --access-token ${{ secrets.ARTIFACTORY_NONUSER_ACCESS_TOKEN }} "${{ env.CHART_NAME }}-*.tgz" coralogix-charts --url ${{ env.ARTIFACTORY_URL }} |