Add action for demo deployment and favicon

This commit is contained in:
thiloho
2024-08-16 14:50:28 +02:00
parent 6897a1641d
commit a422fac957
6 changed files with 114 additions and 2 deletions

View File

@@ -0,0 +1,38 @@
name: "Deploy app to demo server (demo.archtika.com)"
on:
pull_request:
push:
env:
SERVER_USER: thiloho
SERVER_IP: 128.140.75.240
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Nix
uses: cachix/install-nix-action@v27
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup SSH key
uses: webfactory/ssh-agent@v0.9.0
with:
ssh-private-key: ${{ secrets.DEMO_SERVER_SSH_KEY }}
- name: Add server to known hosts
run: ssh-keyscan -H ${{ env.SERVER_IP }} >> ~/.ssh/known_hosts
- name: Deploy to demo server
run: |
nix run nixpkgs#nixos-rebuild -- switch \
--flake .#demo-server \
--build-host ${{ env.SERVER_USER }}@${{ env.SERVER_IP }} \
--target-host ${{ env.SERVER_USER }}@${{ env.SERVER_IP }} \
--use-remote-sudo
env:
GIT_SSH_COMMAND: "ssh -o ForwardAgent=yes"

View File

@@ -51,6 +51,7 @@
hashedPassword = "$y$j9T$Y0ffzVb7wrZSdCKbiYHin0$oahgfFqH/Eep6j6f4iKPETEfGZSOkgu74UT2eyG2uI1"; hashedPassword = "$y$j9T$Y0ffzVb7wrZSdCKbiYHin0$oahgfFqH/Eep6j6f4iKPETEfGZSOkgu74UT2eyG2uI1";
openssh.authorizedKeys.keys = [ openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBj6+r+vMXJyy5wvQTLyfd2rIw62WCg9eIpwsciHg4ym thiloho@pc" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBj6+r+vMXJyy5wvQTLyfd2rIw62WCg9eIpwsciHg4ym thiloho@pc"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFE42q8e7egSSTs4YJo8vQFDbRWqrGTQkR1weq8nT0Zx thiloho@pc"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIgfOa8N46PBUO2gj8UeyrV0R+MRZFnJqUzG132UjaFS thiloho@laptop" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIgfOa8N46PBUO2gj8UeyrV0R+MRZFnJqUzG132UjaFS thiloho@laptop"
]; ];
}; };

View File

@@ -2,7 +2,7 @@
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="utf-8" /> <meta charset="utf-8" />
<link rel="icon" href="%sveltekit.assets%/favicon.png" /> <link rel="icon" href="%sveltekit.assets%/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="viewport" content="width=device-width, initial-scale=1" />
<link <link
rel="stylesheet" rel="stylesheet"

View File

@@ -14,8 +14,12 @@
); );
</script> </script>
<svelte:head>
<title>archtika | {routeName.replaceAll("/", " - ")}</title>
</svelte:head>
<nav> <nav>
<strong>archtika</strong> <img src="/favicon.svg" width="24" height="24" alt="" />
<ul class="link-wrapper"> <ul class="link-wrapper">
{#if data.user} {#if data.user}
<li> <li>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

View File

@@ -0,0 +1,69 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="512"
height="512"
viewBox="0 0 512 512"
version="1.1"
id="svg1"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs1">
<clipPath
clipPathUnits="userSpaceOnUse"
id="clipPath81">
<path
style="display:inline;fill:#808080;fill-opacity:1"
id="path81"
d="M 238.4745,221.60155 47.127052,272.87295 98.398447,81.525498 Z"
transform="matrix(1.8723891,0.38003672,-0.50170515,1.4183164,28.692837,-108.9927)" />
</clipPath>
<clipPath
clipPathUnits="userSpaceOnUse"
id="clipPath82">
<path
style="display:inline;fill:#808080;fill-opacity:1"
id="path82"
d="M 238.4745,221.60155 47.127052,272.87295 98.398447,81.525498 Z"
transform="rotate(180,159.89124,183.45477)" />
</clipPath>
<clipPath
clipPathUnits="userSpaceOnUse"
id="clipPath83">
<path
style="display:inline;fill:#808080;fill-opacity:1"
id="path83"
d="M 238.4745,221.60155 47.127052,272.87295 98.398447,81.525498 Z"
transform="rotate(180,96.108761,200.54523)" />
</clipPath>
</defs>
<g
id="layer1"
style="display:inline">
<g
id="g83"
transform="matrix(1.3333333,0,0,1.3333333,-85.333319,-8.1031545e-6)"
style="display:inline">
<path
style="fill:#4ae086;fill-opacity:1"
id="path49"
d="M 238.4745,221.60155 47.127052,272.87295 98.398447,81.525498 Z"
transform="matrix(-1.8723891,-0.5793192,0.50170515,-2.1620487,271.33842,745.26623)"
clip-path="url(#clipPath83)" />
<path
style="display:inline;fill:#00a056;fill-opacity:1"
id="path50"
d="M 238.4745,221.60155 47.127052,272.87295 98.398447,81.525498 Z"
transform="matrix(-1.8723891,-0.5793192,0.50170515,-2.1620487,527.33841,745.26623)"
clip-path="url(#clipPath82)" />
<path
id="path71"
style="display:inline;fill:#17c171;fill-opacity:1"
transform="matrix(1,0,0,1.5243769,83.968743,-67.120251)"
d="m 236.03126,128.00002 -64.00001,83.96874 -64,-83.96874 64,-83.968747 z"
clip-path="url(#clipPath81)" />
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.3 KiB