Skip to content

Commit

Permalink
setup better failure logs, remove skaffold since we don't want to bui…
Browse files Browse the repository at this point in the history
…ld anything
  • Loading branch information
hahn-kev committed Jun 10, 2024
1 parent d85742a commit 9ddaec0
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/k8s-action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ jobs:
- name: Install Task
uses: arduino/setup-task@v2
- run: task setup-local-env
- name: Install Skaffold
run: |
curl -Lo skaffold https://storage.googleapis.com/skaffold/releases/latest/skaffold-linux-amd64
sudo install skaffold /usr/local/bin/
- name: setup k8s
uses: helm/[email protected]
- name: Verify k8s
Expand All @@ -29,10 +25,14 @@ jobs:
- name: deploy
run: |
kubectl create namespace languagedepot
task up
kubectl apply -k ./deployment/local-dev
kubectl wait --for=condition=Ready --timeout=60s pod -l 'app in (lexbox, ui, hg, db)' -n languagedepot
- name: status
if: always()
run: kubectl get deployment/lexbox -n languagedepot
if: failure()
run: |
kubectl describe pods -l 'app in (lexbox, ui, hg, db)' -n languagedepot
echo "========== LOGS =========="
kubectl logs -l 'app in (lexbox, ui, hg, db)' -n languagedepot --prefix --all-containers
- name: test
env:
TEST_SERVER_HOSTNAME: 'localhost'
Expand Down

0 comments on commit 9ddaec0

Please sign in to comment.