Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
jooola committed Jun 27, 2024
1 parent f565090 commit 01dd9d8
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions .github/workflows/robot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,16 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Setup tmate session
env:
ROBOT_USER: ${{ secrets.ROBOT_USER }}
ROBOT_PASSWORD: ${{ secrets.ROBOT_PASSWORD }}
ROBOT_SSH_KEY: ${{ secrets.ROBOT_SSH_KEY }}
uses: mxschmitt/action-tmate@v3
with:
limit-access-to-actor: true

- name: Install robot server
env:
ROBOT_USER: ${{ secrets.ROBOT_USER }}
ROBOT_PASSWORD: ${{ secrets.ROBOT_PASSWORD }}
ROBOT_SSH_KEY: ${{ secrets.ROBOT_SSH_KEY }}
run: |
make install
eval "$(ssh-agent -s)"
ssh-add <(echo -n "$ROBOT_SSH_KEY")
trap "kill $SSH_AGENT_PID" EXIT
ansible-playbook -vv --key-file ssh_key install.yml reboot.yml
ansible-playbook -vv install.yml reboot.yml

0 comments on commit 01dd9d8

Please sign in to comment.