Skip to content

Release Charts(Demo lite) #35

Release Charts(Demo lite)

Release Charts(Demo lite) #35

name: Release Charts(Demo lite)
# on:
# push:
# paths:
# - 'charts/opentelemetry-demo/**'
on:
# Requires manual trigger
workflow_dispatch
jobs:
release:
runs-on: ubuntu-latest
env:
RELEASE_VERSION: "${{ github.event.release.tag_name }}"
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- name: Install Helm
uses: azure/[email protected]
with:
version: v3.4.1
- name: Add dependent repositories
run: |
helm repo add open-telemetry https://open-telemetry.github.io/opentelemetry-helm-charts
helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo add redis https://ot-container-kit.github.io/helm-charts
helm dep up charts/opentelemetry-demo-lite
- name: Release Helm Chart
uses: helm/[email protected]
env:
CR_TOKEN: "${{ secrets.ACTIONS_TOKEN }}"
with:
charts_dir: charts/opentelemetry-demo-lite
# - name: Add DaoCloud Registry
# env:
# DAOCLOUD_REGISTRY_URL: release.daocloud.io
# DAOCLOUD_REGISTRY_USERNAME: ${{ secrets.DAOCLOUD_REGISTRY_USERNAME }}
# DAOCLOUD_REGISTRY_PASSWORD: ${{ secrets.DAOCLOUD_REGISTRY_PASSWORD }}
# HELM_EXPERIMENTAL_OCI: 1
# run: |
# helm registry login $DAOCLOUD_REGISTRY_URL --username $DAOCLOUD_REGISTRY_USERNAME --password $DAOCLOUD_REGISTRY_PASSWORD
#
# - name: Release to DaoCloud Community Chart Repo
# env:
# DAOCLOUD_REGISTRY_USERNAME: ${{ secrets.DAOCLOUD_REGISTRY_USERNAME }}
# DAOCLOUD_REGISTRY_PASSWORD: ${{ secrets.DAOCLOUD_REGISTRY_PASSWORD }}
# run: |
# helm repo add daocloud-community https://release.daocloud.io/chartrepo/community
# helm plugin install https://github.com/chartmuseum/helm-push
# helm cm-push charts/opentelemetry-demo-lite daocloud-community -u $DAOCLOUD_REGISTRY_USERNAME -p $DAOCLOUD_REGISTRY_PASSWORD