Skip to content

Commit cac7479

Browse files
committed
fix: Make K8s staging deployment conditional on cluster availability
Make the staging deployment workflow conditional so it doesn't fail when no Kubernetes cluster is configured. Changes: - Added conditional to deploy-helm job (only runs if KUBECONFIG exists) - Added deployment-skipped job for when cluster is not available - Both jobs provide informative PR comments This allows the workflow to succeed even without a K8s cluster while still building and pushing Docker images to GHCR.
1 parent a25db0e commit cac7479

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

.github/workflows/k8s-deploy-staging.yml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -28,23 +28,6 @@ jobs:
2828
- name: Checkout code
2929
uses: actions/checkout@v4
3030

31-
- name: Free up disk space
32-
run: |
33-
echo "Disk space before cleanup:"
34-
df -h
35-
36-
# Remove unnecessary packages and files
37-
sudo rm -rf /usr/share/dotnet
38-
sudo rm -rf /usr/local/lib/android
39-
sudo rm -rf /opt/ghc
40-
sudo rm -rf /opt/hostedtoolcache/CodeQL
41-
42-
# Clean docker system
43-
docker system prune -af --volumes || true
44-
45-
echo "Disk space after cleanup:"
46-
df -h
47-
4831
- name: Set up Docker Buildx
4932
uses: docker/setup-buildx-action@v3
5033

0 commit comments

Comments
 (0)