diff --git a/.github/workflows/helm-build-chart.yml b/.github/workflows/helm-build-chart.yml index ae54a72366..ff2ce35c7c 100644 --- a/.github/workflows/helm-build-chart.yml +++ b/.github/workflows/helm-build-chart.yml @@ -6,6 +6,10 @@ on: branches: [main] workflow_dispatch: +env: + API_KEY: changeme + OPENVASD: 127.0.0.1:8080 + jobs: openvasd: runs-on: ubuntu-latest @@ -21,7 +25,16 @@ jobs: helm uninstall openvasd || true helm install openvasd charts/openvasd/ --values charts/openvasd/values.yaml kubectl rollout status --watch --timeout 600s deployment/openvasd - helm test openvasd + #helm test openvasd + #echo "POD_NAME=$(kubectl get pods --namespace default -l 'app.kubernetes.io/name=openvasd,app.kubernetes.io/instance=openvasd' -o jsonpath='{.items[0].metadata.name}')" + echo "POD_NAME=$(kubectl get pods |grep openvasd | awk '{print $1;}')" >> $GITHUB_ENV + echo "POD_NAME: ${{ env.POD_NAME }}" + echo "$(kubectl get pods)" + kubectl --namespace default port-forward ${{ env.POD_NAME }} 8080:3000 + - name: smoketest + working-directory: rust/smoketest + run: | + make build run - uses: greenbone/actions/helm-build-push@v3 if: github.event_name == 'workflow_dispatch' with: @@ -29,4 +42,4 @@ jobs: registry: ${{ vars.IMAGE_REGISTRY }} registry-subpath: helm-charts/ registry-user: ${{ secrets.GREENBONE_BOT }} - registry-token: ${{ secrets.GREENBONE_BOT_PACKAGES_WRITE_TOKEN }} \ No newline at end of file + registry-token: ${{ secrets.GREENBONE_BOT_PACKAGES_WRITE_TOKEN }}