init
All checks were successful
continuous-integration/drone Build is passing

This commit is contained in:
Elizabeth Hunt 2024-03-09 00:25:48 -07:00
commit 23bffaa331
Signed by: simponic
GPG Key ID: 52B3774857EB24B1
10 changed files with 71 additions and 0 deletions

17
.drone.yml Normal file
View 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
View File

@ -0,0 +1,2 @@
dist/
.env

15
compile.sh Executable file
View 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
View 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
View File

@ -0,0 +1,5 @@
#!/bin/sh
cp -r ./public ../dist/public_gemini
echo "built gemini site!"

5
gemini/public/index.gmi Normal file
View 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
View File

@ -0,0 +1,5 @@
#!/bin/sh
cp -r ./public ../dist/public_gopher
echo "finished building gopher site!"

View 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
View File

@ -0,0 +1,5 @@
#!/bin/sh
cp -r ./public ../dist/public_html
echo "finished building HTML"

1
html/public/index.html Normal file
View File

@ -0,0 +1 @@
hai