Fix pre-deploy script on Windows to really delete the CRDs #3020
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build and Deploy Images | |
| on: | |
| push: | |
| paths-ignore: | |
| - "docs/**" | |
| - "*.md" | |
| - "deploy/helm/*.md" | |
| tags: | |
| - '*.*.*' | |
| pull_request: | |
| branches: | |
| - master | |
| - 'release/**' | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| build_and_test: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| image_tag: ${{ steps.generate-tag.outputs.value }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| with: | |
| submodules: 'recursive' | |
| - name: Deploy skaffold | |
| uses: ./.github/actions/deploy-skaffold | |
| - name: Create k8s Kind Cluster | |
| uses: helm/kind-action@v1.12.0 | |
| with: | |
| version: v0.30.0 | |
| kubectl_version: v1.34.0 | |
| node_image: kindest/node:v1.34.0 | |
| cluster_name: kind | |
| ignore_failed_clean: true | |
| - name: Add dependency chart repos | |
| run: | | |
| helm repo add prometheus-community https://prometheus-community.github.io/helm-charts | |
| helm repo add open-telemetry https://open-telemetry.github.io/opentelemetry-helm-charts | |
| helm repo add jetstack https://charts.jetstack.io | |
| helm repo add aquasecurity https://aquasecurity.github.io/helm-charts/ | |
| - name: Generate docker image tag | |
| id: generate-tag | |
| run: echo "::set-output name=value::v${{ github.run_number }}-$(git rev-parse --short HEAD)" | |
| - name: Build | |
| run: skaffold build --file-output=/tmp/tags.json --tag ${{ steps.generate-tag.outputs.value }} | |
| - name: Test | |
| run: skaffold test --build-artifacts=/tmp/tags.json | |
| - name: Copy image to Kind cluster | |
| run: | | |
| kind load docker-image $(jq -r '.builds[] | select(.imageName=="integration-test") | .tag' /tmp/tags.json) | |
| kind load docker-image $(jq -r '.builds[] | select(.imageName=="test-communicator") | .tag' /tmp/tags.json) | |
| - name: Setup kubetail | |
| run: | | |
| curl -Lo kubetail https://raw.githubusercontent.com/johanhaleby/kubetail/master/kubetail && sudo install kubetail /usr/local/bin/ | |
| shell: bash | |
| - name: Deploy services using Skaffold | |
| run: skaffold deploy --build-artifacts=/tmp/tags.json --kube-context kind-kind | |
| - name: Skaffold diagnose | |
| if: ${{ failure() }} | |
| run: | | |
| skaffold diagnose | |
| - name: Show all resources | |
| if: ${{ failure() }} | |
| run: | | |
| kubectl get all -n test-namespace | |
| kubectl get events -n test-namespace | |
| - name: Run integration tests | |
| uses: ./.github/actions/run-integration-tests | |