From f1fbdd34c4e6e721a5f55fc3735afd2f9c95b5c1 Mon Sep 17 00:00:00 2001 From: Cees-Jan Kiewiet Date: Sun, 17 Nov 2024 20:55:28 +0100 Subject: [PATCH] Use helm action output for URL's --- .github/workflows/helm-charts-test.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/helm-charts-test.yaml b/.github/workflows/helm-charts-test.yaml index 7744fb6..dba001a 100644 --- a/.github/workflows/helm-charts-test.yaml +++ b/.github/workflows/helm-charts-test.yaml @@ -53,6 +53,7 @@ jobs: - run: kubectl get svc -A - name: Install PiHole uses: evryfs/helm-ephemeral-action@v0.2.5 + id: helm-pihole with: repo: https://mojo2600.github.io/pihole-kubernetes/ chart: pihole @@ -63,9 +64,10 @@ jobs: - name: Create postgresql URL id: pihole run: | - echo ::set-output name=hostname::$(echo "pihole-helm-charts-${{ github.run_number }}-web.default" | base64) + echo ::set-output name=hostname::$(echo "${{ steps.helm-pihole.outputs.releaseName }}-web.default" | base64) - name: Install postgresql uses: evryfs/helm-ephemeral-action@v0.2.5 + id: helm-postgresql with: repo: https://charts.bitnami.com/bitnami chart: postgresql @@ -80,7 +82,7 @@ jobs: - name: Create postgresql URL id: postgresql run: | - echo ::set-output name=url::$(echo "postgresql://postgres:${{ steps.postgresql_password.outputs.password }}@postgresql-helm-charts-${{ github.run_number }}.default/postgres") + echo ::set-output name=url::$(echo "postgresql://postgres:${{ steps.postgresql_password.outputs.password }}@${{ steps.helm-postgresql.outputs.releaseName }}.default/postgres") - name: Add WyriHaximusNet repo run: helm repo add WyriHaximusNet https://helm.wyrihaximus.net/ - name: Install Chart Tester