Compare commits
6
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e4fed02809 | ||
|
|
eab6bc50c9 | ||
|
|
a8e20f437b | ||
|
|
4487ac99b4 | ||
|
|
23f909b9d8 | ||
|
|
6b089ff223 |
@@ -32,7 +32,7 @@ jobs:
|
|||||||
run: go vet ./...
|
run: go vet ./...
|
||||||
|
|
||||||
- name: Go test
|
- name: Go test
|
||||||
run: go test ./...
|
run: go test -short ./...
|
||||||
|
|
||||||
- name: Get short SHA
|
- name: Get short SHA
|
||||||
id: sha
|
id: sha
|
||||||
@@ -67,7 +67,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
mkdir -p ~/.kube
|
mkdir -p ~/.kube
|
||||||
echo "${KUBECONFIG_B64}" | base64 -d > ~/.kube/config
|
echo "${KUBECONFIG_B64}" | base64 -d > ~/.kube/config
|
||||||
kubectl get nodes --no-headers | head -1
|
kubectl get namespaces --no-headers | head -1
|
||||||
echo '✓ kubeconfig works'
|
echo '✓ kubeconfig works'
|
||||||
env:
|
env:
|
||||||
KUBECONFIG_B64: ${{ secrets.KUBECONFIG_B64 }}
|
KUBECONFIG_B64: ${{ secrets.KUBECONFIG_B64 }}
|
||||||
@@ -157,8 +157,12 @@ jobs:
|
|||||||
if: always() && github.event_name == 'push' && github.ref == 'refs/heads/main'
|
if: always() && github.event_name == 'push' && github.ref == 'refs/heads/main'
|
||||||
run: |
|
run: |
|
||||||
POD_NAME="${{ steps.canary.outputs.pod_name }}"
|
POD_NAME="${{ steps.canary.outputs.pod_name }}"
|
||||||
|
if [ -n "${POD_NAME}" ]; then
|
||||||
kubectl delete pod "${POD_NAME}" -n api --ignore-not-found || true
|
kubectl delete pod "${POD_NAME}" -n api --ignore-not-found || true
|
||||||
echo "✓ Canary pod removed"
|
echo "✓ Canary pod removed"
|
||||||
|
else
|
||||||
|
echo "⚠ No canary pod to clean up (name was empty)"
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Gate on test result
|
- name: Gate on test result
|
||||||
if: github.event_name == 'push' && github.ref == 'refs/heads/main' && steps.tests.outputs.result != 'pass'
|
if: github.event_name == 'push' && github.ref == 'refs/heads/main' && steps.tests.outputs.result != 'pass'
|
||||||
|
|||||||
Reference in New Issue
Block a user