Skip to content

Supporting specify IPv4 address for default session host (#258) #20

Supporting specify IPv4 address for default session host (#258)

Supporting specify IPv4 address for default session host (#258) #20

---
name: 'Publish Helm chart Operator'
on:
push:
branches:
- master
paths:
- "charts/hoprd-operator/**"
concurrency:
group: ${{ github.head_ref }}-operator
cancel-in-progress: false
jobs:
publish:
runs-on: self-hosted-hoprnet-small
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Helm
uses: azure/setup-helm@v4
with:
version: latest
token: ${{ secrets.GITHUB_TOKEN }}
- name: Get Helm chart version
id: get_version
run: |
HELM_CHART_VERSION=$(grep '^version:' Chart.yaml | sed 's/.*: //')
echo "HELM_CHART_VERSION=${HELM_CHART_VERSION}" >> $GITHUB_OUTPUT
working-directory: 'charts/hoprd-operator/'
- name: Setup GCP
id: gcp
uses: hoprnet/hopr-workflows/actions/setup-gcp@master
with:
google-credentials: ${{ secrets.GOOGLE_HOPRASSOCIATION_CREDENTIALS_REGISTRY }}
login-artifact-registry: 'true'
- name: Helm Package
run: |
helm package . --version ${{ steps.get_version.outputs.HELM_CHART_VERSION }}
working-directory: 'charts/hoprd-operator/'
- name: Helm Publish
run: |
helm push hoprd-operator-${{ steps.get_version.outputs.HELM_CHART_VERSION }}.tgz oci://europe-west3-docker.pkg.dev/hoprassociation/helm-charts
working-directory: 'charts/hoprd-operator/'
- name: Tag Helm version
run: |
git config user.email "[email protected]"
git config user.name "HOPR CI robot"
git tag helm-hoprd-operator-${{ steps.get_version.outputs.HELM_CHART_VERSION }}
git push origin helm-hoprd-operator-${{ steps.get_version.outputs.HELM_CHART_VERSION }}