This commit is contained in:
commit
23bffaa331
17
.drone.yml
Normal file
17
.drone.yml
Normal file
@ -0,0 +1,17 @@
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: default
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
image: alpine
|
||||
commands:
|
||||
- sh compile.sh
|
||||
- apk add openssh
|
||||
- sh deploy.sh
|
||||
environment:
|
||||
SSH_CONNECTION_STRING:
|
||||
from_secret: SSH_CONNECTION_STRING
|
||||
SSH_KEY:
|
||||
from_secret: SSH_KEY
|
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
dist/
|
||||
.env
|
15
compile.sh
Executable file
15
compile.sh
Executable file
@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
mkdir -p dist
|
||||
|
||||
pwd=$PWD
|
||||
|
||||
for source in "html" "gemini" "gopher"; do
|
||||
cd $source
|
||||
echo "building $source..."
|
||||
./build.sh
|
||||
|
||||
cd $pwd
|
||||
done
|
9
deploy.sh
Executable file
9
deploy.sh
Executable file
@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
echo $SSH_KEY | base64 -d >> /tmp/key
|
||||
chmod -R 0600 /tmp/key
|
||||
scp -o StrictHostKeyChecking=no -i /tmp/key -r dist/* $SSH_CONNECTION_STRING:~
|
||||
|
||||
rm /tmp/key
|
5
gemini/build.sh
Executable file
5
gemini/build.sh
Executable file
@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
cp -r ./public ../dist/public_gemini
|
||||
|
||||
echo "built gemini site!"
|
5
gemini/public/index.gmi
Normal file
5
gemini/public/index.gmi
Normal file
@ -0,0 +1,5 @@
|
||||
this is my gemini page.
|
||||
|
||||
there are many like it, but this one is mine.
|
||||
|
||||
=> / back to tilde.club
|
5
gopher/build.sh
Executable file
5
gopher/build.sh
Executable file
@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
cp -r ./public ../dist/public_gopher
|
||||
|
||||
echo "finished building gopher site!"
|
7
gopher/public/public_gopher/gophermap
Normal file
7
gopher/public/public_gopher/gophermap
Normal file
@ -0,0 +1,7 @@
|
||||
=/usr/bin/figlet -f slant "~"$(stat -c '%U' `pwd`)
|
||||
|
||||
this is my gopher page.
|
||||
|
||||
there are many like it, but this one is mine.
|
||||
|
||||
1back to tilde.club /
|
5
html/build.sh
Executable file
5
html/build.sh
Executable file
@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
cp -r ./public ../dist/public_html
|
||||
|
||||
echo "finished building HTML"
|
1
html/public/index.html
Normal file
1
html/public/index.html
Normal file
@ -0,0 +1 @@
|
||||
hai
|
Loading…
Reference in New Issue
Block a user