diff options
| author | Silas Bartha <silas@soaos.dev> | 2025-03-15 22:07:56 -0400 |
|---|---|---|
| committer | Silas Bartha <silas@soaos.dev> | 2025-03-15 22:07:56 -0400 |
| commit | bbeea9913cdc8a5d1aeface8da3b0233cb42ac85 (patch) | |
| tree | 4136d3d67c73f94e0db2fedeea88c592e7c7b744 /.gitea | |
| parent | c28d5e17620b67a9ad9999b53b910e9f41af64d6 (diff) | |
add gitea workflow
Diffstat (limited to '.gitea')
| -rw-r--r-- | .gitea/workflows/deploy.yaml | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml new file mode 100644 index 0000000..c566585 --- /dev/null +++ b/.gitea/workflows/deploy.yaml @@ -0,0 +1,29 @@ +name: Deploying Static Site +on: [push] + +jobs: + Build: + container: alpine:latest + steps: + - name: Install dependencies + run: apk add git nodejs openssh rust + - name: Install ringfairy + run: | + git clone https://github.com/k3rs3d/ringfairy.git + cd ringfairy + cargo build --release + cd .. + - name: Check out repository code + uses: actions/checkout@v4 + - name: Build webring using ringfairy + run: ringfairy/target/release/ringfairy + - name: Write SSH keys + run: | + install -m 600 -D /dev/null ~/.ssh/id_ed25519 + echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_ed25519 + ssh-keyscan -H 192.168.1.113 > ~/.ssh/known_hosts + - name: Copy built site to server + run: | + ssh git@192.168.1.113 "rm -rf /var/www/evilr.ing && mkdir /var/www/evilr.ing" + scp -sr public/. git@192.168.1.113:/var/www/evilr.ing + |
