Skip to content

Commit

Permalink
r1
Browse files Browse the repository at this point in the history
  • Loading branch information
leshikus committed Jun 15, 2024
1 parent 8d92011 commit 544ceeb
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/deploy-gh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ jobs:
- run: |
hostname -i >control-node-ip.txt
ssh-keygen -q -b 2048 -t rsa -N '' -C 'cluster key' -f ~/.ssh/id_rsa
cp ~/.ssh/id_rsa.pub ~/.ssh/authorized_keys
- name: Upload control node IP
uses: actions/upload-artifact@v4
with:
name: control-node
path: |
control-node-ip.txt
~/.ssh/id_rsa
~/.ssh/id_rsa.pub
- run: |
sleep 200
Expand All @@ -55,12 +55,12 @@ jobs:
- uses: actions/download-artifact@v4
with:
name: control-node-ip.txt
name: control-node.txt

- run: |
set -vx
echo ${{ matrix.id }}
cat control-node-ip.txt
ls -l ~/.ssh/
hostname -i
ip=$(cat control-node-ip.txt)
mv .ssh ~/
ssh $ip echo hello

0 comments on commit 544ceeb

Please sign in to comment.