Skip to content

Commit

Permalink
Task for SSH setup is now working
Browse files Browse the repository at this point in the history
  • Loading branch information
rmunn committed Jun 14, 2023
1 parent 042d562 commit e5d7f93
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,20 @@ tasks:
- genkey
cmds:
- cp "$HOME/.ssh/id_lexbox_k8sdev.pub" deployment/
- cp deployment/k8sdev-ssh.conf "$HOME/.ssh/"
- chmod 600 "$HOME/.ssh/k8sdev-ssh.conf"

setupssh:
cmds:
- echo 'Host k8sdev' >> "$HOME/.ssh/config"
- echo ' Include k8sdev-ssh.conf' >> "$HOME/.ssh/config"
status:
- grep ' Include k8sdev-ssh.conf' "$HOME/.ssh/config"

localdev:
deps:
- copykey
- setupssh
cmds:
- "kubectl apply -k deployment"
- "kubectl apply -f deployment/localdev-deployment.yaml"
Expand Down

0 comments on commit e5d7f93

Please sign in to comment.