Skip to content

Commit

Permalink
tee
Browse files Browse the repository at this point in the history
  • Loading branch information
clincha committed Oct 19, 2024
1 parent 05abd18 commit df9cf7b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/deploy_vagrant_server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ jobs:
- name: "Checkout code"
uses: actions/checkout@v4

- name: "Setup a user for login"
run:
sudo useradd -m clincha
sudo mkdir /home/clincha/.ssh
sudo echo "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIq6GsW5VG34q/SOzGKZpo+pevmpj9O+CjWDo+wOjqTO" | sudo tee /home/clincha/.ssh/authorized_keys
sudo chown clincha:clincha /home/clincha/.ssh/authorized_keys
sudo chmod 600 /home/clincha/.ssh/authorized_keys

- name: "Establish WireGuard connection"
run: |
sudo apt-get -qq update
Expand All @@ -38,14 +46,6 @@ jobs:

sudo wg-quick up wg0

- name: "Setup a user for login"
run:
sudo useradd -m clincha
sudo mkdir /home/clincha/.ssh
sudo echo "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIq6GsW5VG34q/SOzGKZpo+pevmpj9O+CjWDo+wOjqTO" > /home/clincha/.ssh/authorized_keys
sudo chown clincha:clincha /home/clincha/.ssh/authorized_keys
sudo chmod 600 /home/clincha/.ssh/authorized_keys

- name: "Install VirtualBox"
run: |
wget -O- https://www.virtualbox.org/download/oracle_vbox_2016.asc | sudo gpg --dearmor -o /usr/share/keyrings/oracle-virtualbox-2016.gpg
Expand Down

0 comments on commit df9cf7b

Please sign in to comment.