diff --git a/.github/workflows/k3d.yaml b/.github/workflows/k3d.yaml index 5d25acc..e3befa3 100644 --- a/.github/workflows/k3d.yaml +++ b/.github/workflows/k3d.yaml @@ -127,4 +127,16 @@ jobs: kubectl wait --for=condition=available deployment/pipe-sequence -n kerberos-hub --timeout=300s kubectl wait --for=condition=available deployment/pipe-sprite -n kerberos-hub --timeout=300s kubectl wait --for=condition=available deployment/pipe-throttler -n kerberos-hub --timeout=300s - kubectl get pods -A -o wide \ No newline at end of file + kubectl get pods -A -o wide + - name: Send Slack Notification on Success + if: success() + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} + run: | + curl -X POST -H 'Content-type: application/json' --data "{\"text\": \"✅ K3d deployment successful on ${{ matrix.os }} (${{ matrix.k3d }}) - triggered by ${{ github.actor }}\"}" $SLACK_WEBHOOK_URL + - name: Send Slack Notification on Failure + if: failure() + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} + run: | + curl -X POST -H 'Content-type: application/json' --data "{\"text\": \"❌ K3d deployment failed on ${{ matrix.os }} (${{ matrix.k3d }}) - <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View logs>\"}" $SLACK_WEBHOOK_URL \ No newline at end of file diff --git a/.github/workflows/kind.yaml b/.github/workflows/kind.yaml index e8fac65..c7d5973 100644 --- a/.github/workflows/kind.yaml +++ b/.github/workflows/kind.yaml @@ -123,4 +123,16 @@ jobs: kubectl wait --for=condition=available deployment/pipe-sequence -n kerberos-hub --timeout=300s kubectl wait --for=condition=available deployment/pipe-sprite -n kerberos-hub --timeout=300s kubectl wait --for=condition=available deployment/pipe-throttler -n kerberos-hub --timeout=300s - kubectl get pods -A -o wide \ No newline at end of file + kubectl get pods -A -o wide + - name: Send Slack Notification on Success + if: success() + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} + run: | + curl -X POST -H 'Content-type: application/json' --data "{\"text\": \"✅ Kind deployment successful on ${{ matrix.os }} (${{ matrix.kind }}) - triggered by ${{ github.actor }}\"}" $SLACK_WEBHOOK_URL + - name: Send Slack Notification on Failure + if: failure() + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} + run: | + curl -X POST -H 'Content-type: application/json' --data "{\"text\": \"❌ Kind deployment failed on ${{ matrix.os }} (${{ matrix.kind }}) - <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View logs>\"}" $SLACK_WEBHOOK_URL \ No newline at end of file diff --git a/.github/workflows/kustomize.yaml b/.github/workflows/kustomize.yaml index 0cb862c..39b9a31 100644 --- a/.github/workflows/kustomize.yaml +++ b/.github/workflows/kustomize.yaml @@ -28,4 +28,16 @@ jobs: kubectl get pods -A -o wide kubectl get sc - name: Checkout repository - uses: actions/checkout@v2 \ No newline at end of file + uses: actions/checkout@v2 + - name: Send Slack Notification on Success + if: success() + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} + run: | + curl -X POST -H 'Content-type: application/json' --data "{\"text\": \"✅ Kustomize deployment successful on ${{ matrix.os }} (${{ matrix.kind }}) - triggered by ${{ github.actor }}\"}" $SLACK_WEBHOOK_URL + - name: Send Slack Notification on Failure + if: failure() + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} + run: | + curl -X POST -H 'Content-type: application/json' --data "{\"text\": \"❌ Kustomize deployment failed on ${{ matrix.os }} (${{ matrix.kind }}) - <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View logs>\"}" $SLACK_WEBHOOK_URL \ No newline at end of file diff --git a/.github/workflows/microk8s.yaml b/.github/workflows/microk8s.yaml index f311b77..331dac9 100644 --- a/.github/workflows/microk8s.yaml +++ b/.github/workflows/microk8s.yaml @@ -10,7 +10,6 @@ jobs: strategy: matrix: os: [ubuntu-22.04, ubuntu-24.04] - #microk8s: [1.29/stable, 1.30/stable, 1.31/stable, 1.32/stable] microk8s: [1.32/stable] steps: - uses: balchua/microk8s-actions@v0.4.3 @@ -117,4 +116,17 @@ jobs: kubectl wait --for=condition=available deployment/pipe-sequence -n kerberos-hub --timeout=300s kubectl wait --for=condition=available deployment/pipe-sprite -n kerberos-hub --timeout=300s kubectl wait --for=condition=available deployment/pipe-throttler -n kerberos-hub --timeout=300s - kubectl get pods -A -o wide \ No newline at end of file + kubectl get pods -A -o wide + - name: Send Slack Notification on Success + if: success() + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} + run: | + curl -X POST -H 'Content-type: application/json' --data "{\"text\": \"✅ MicroK8s deployment successful on ${{ matrix.os }} (${{ matrix.microk8s }}) - triggered by ${{ github.actor }}\"}" $SLACK_WEBHOOK_URL + - name: Send Slack Notification on Failure + if: failure() + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} + run: | + curl -X POST -H 'Content-type: application/json' --data "{\"text\": \"❌ MicroK8s deployment failed on ${{ matrix.os }} (${{ matrix.microk8s }}) - <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View logs>\"}" $SLACK_WEBHOOK_URL + \ No newline at end of file diff --git a/.github/workflows/pr-description.yml b/.github/workflows/pr-description.yml index d0bfdb4..f607658 100644 --- a/.github/workflows/pr-description.yml +++ b/.github/workflows/pr-description.yml @@ -16,4 +16,4 @@ jobs: azure_openai_api_key: ${{ secrets.AZURE_OPENAI_API_KEY }} azure_openai_endpoint: ${{ secrets.AZURE_OPENAI_ENDPOINT }} azure_openai_version: ${{ secrets.AZURE_OPENAI_VERSION }} - overwrite_description: true + overwrite_description: true \ No newline at end of file