Skip to content

Commit 1dca889

Browse files
authored
Fix kubectl exec command in deploy workflow
1 parent 6715943 commit 1dca889

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
- name: Wait for pods
6565
run: |
6666
kubectl wait --for=condition=ready pod -l app=postgres --timeout=120s
67-
kubectl exec -it $(kubectl get pod -l app=postgres -o jsonpath="{.items[0].metadata.name}") -- psql -U postgres -d todo_db -c "CREATE TABLE IF NOT EXISTS todo (todo_id SERIAL PRIMARY KEY, description VARCHAR(255));"
67+
kubectl exec $(kubectl get pod -l app=postgres -o jsonpath="{.items[0].metadata.name}") -- psql -U postgres -d todo_db -c "CREATE TABLE IF NOT EXISTS todo (todo_id SERIAL PRIMARY KEY, description VARCHAR(255));"
6868
kubectl wait --for=condition=ready pod -l app=backend --timeout=120s
6969
kubectl wait --for=condition=ready pod -l app=frontend --timeout=120s
7070

0 commit comments

Comments
 (0)