diff --git a/.github/workflows/helm_chart_release.yml b/.github/workflows/helm-release-infisical-core.yml similarity index 82% rename from .github/workflows/helm_chart_release.yml rename to .github/workflows/helm-release-infisical-core.yml index 8f47da69d0..0588d5d0d0 100644 --- a/.github/workflows/helm_chart_release.yml +++ b/.github/workflows/helm-release-infisical-core.yml @@ -1,4 +1,4 @@ -name: Release Helm Charts +name: Release Infisical Core Helm chart on: [workflow_dispatch] @@ -17,6 +17,6 @@ jobs: - name: Install Cloudsmith CLI run: pip install --upgrade cloudsmith-cli - name: Build and push helm package to Cloudsmith - run: cd helm-charts && sh upload-to-cloudsmith.sh + run: cd helm-charts && sh upload-infisical-core-helm-cloudsmith.sh env: CLOUDSMITH_API_KEY: ${{ secrets.CLOUDSMITH_API_KEY }} \ No newline at end of file diff --git a/.github/workflows/release_docker_k8_operator.yaml b/.github/workflows/release_docker_k8_operator.yaml index 517549ea8c..162cc9dc0b 100644 --- a/.github/workflows/release_docker_k8_operator.yaml +++ b/.github/workflows/release_docker_k8_operator.yaml @@ -1,4 +1,4 @@ -name: Release Docker image for K8 operator +name: Release image + Helm chart K8s Operator on: push: tags: @@ -35,3 +35,18 @@ jobs: tags: | infisical/kubernetes-operator:latest infisical/kubernetes-operator:${{ steps.extract_version.outputs.version }} + + - name: Checkout + uses: actions/checkout@v2 + - name: Install Helm + uses: azure/setup-helm@v3 + with: + version: v3.10.0 + - name: Install python + uses: actions/setup-python@v4 + - name: Install Cloudsmith CLI + run: pip install --upgrade cloudsmith-cli + - name: Build and push helm package to Cloudsmith + run: cd helm-charts && sh upload-k8s-operator-cloudsmith.sh + env: + CLOUDSMITH_API_KEY: ${{ secrets.CLOUDSMITH_API_KEY }} diff --git a/helm-charts/upload-infisical-core-helm-cloudsmith.sh b/helm-charts/upload-infisical-core-helm-cloudsmith.sh new file mode 100755 index 0000000000..304850bee9 --- /dev/null +++ b/helm-charts/upload-infisical-core-helm-cloudsmith.sh @@ -0,0 +1,8 @@ +cd "infisical-standalone-postgres" +helm dependency update +helm package . +for i in *.tgz; do + [ -f "$i" ] || break + cloudsmith push helm --republish infisical/helm-charts "$i" +done +cd .. diff --git a/helm-charts/upload-k8s-operator-cloudsmith.sh b/helm-charts/upload-k8s-operator-cloudsmith.sh new file mode 100755 index 0000000000..219978e642 --- /dev/null +++ b/helm-charts/upload-k8s-operator-cloudsmith.sh @@ -0,0 +1,8 @@ +cd secrets-operator +helm dependency update +helm package . +for i in *.tgz; do + [ -f "$i" ] || break + cloudsmith push helm --republish infisical/helm-charts "$i" +done +cd .. \ No newline at end of file