tangled
alpha
login
or
join now
veryroundbird.house
/
pds-dash
4
fork
atom
pds dash for shimaenaga.veryroundbird.house (based off of pds.witchcraft.systems)
4
fork
atom
overview
issues
pulls
pipelines
add deploy config back in
veryroundbird.house
6 months ago
e8c833d1
c72c96a6
0/1
build.yml
failed
16s
+12
-1
1 changed file
expand all
collapse all
unified
split
.tangled
workflows
build.yml
+12
-1
.tangled/workflows/build.yml
···
37
37
mkdir ~/.ssh
38
38
echo "${SSH_KEY}" > ~/.ssh/id_tangledsh
39
39
chmod 600 ~/.ssh/id_tangledsh
40
40
+
cat > ~/.ssh/config << EOF
41
41
+
Host deploy
42
42
+
HostName ${SERVER_HOST}
43
43
+
User ${SERVER_USER}
44
44
+
IdentityFile ~/.ssh/id_tangledsh
45
45
+
StrictHostKeyChecking accept-new
46
46
+
BatchMode yes
47
47
+
PasswordAuthentication no
48
48
+
PubkeyAuthentication yes
49
49
+
EOF
50
50
+
chmod 600 ~/.ssh/config
40
51
ssh-keyscan -H $SERVER_HOST > ~/.ssh/known_hosts
41
52
42
53
- name: "Check SSH connection"
···
47
58
- name: "Deploy via SCP"
48
59
command: |
49
60
echo "🪶 deploying files via scp"
50
50
-
scp -r ./dist/* $SERVER_USER@$SERVER_HOST:/pds/caddy/etc/caddy/static
61
61
+
scp -r ./dist/* deploy:/pds/caddy/etc/caddy/static
51
62
52
63
- name: "Done!"
53
64
command: |