feat: initial links page with CI/CD workflow
All checks were successful
Deploy / deploy (push) Successful in 38s
All checks were successful
Deploy / deploy (push) Successful in 38s
This commit is contained in:
commit
1a1b72d8b5
25
.gitea/workflows/deploy.yml
Normal file
25
.gitea/workflows/deploy.yml
Normal file
@ -0,0 +1,25 @@
|
||||
name: Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Deploy to VPS
|
||||
uses: appleboy/ssh-action@v1.0.0
|
||||
with:
|
||||
host: ${{ secrets.VPS_HOST }}
|
||||
username: ${{ secrets.VPS_USER }}
|
||||
key: ${{ secrets.VPS_SSH_KEY }}
|
||||
script: |
|
||||
mkdir -p ~/services/links
|
||||
cd ~/services/links
|
||||
git clone https://git.ugo-preiswerk.site/${{ gitea.repository }} . 2>/dev/null || git pull
|
||||
docker compose -f ~/services/docker-compose.yml restart links 2>/dev/null || true
|
||||
23
index.html
Normal file
23
index.html
Normal file
@ -0,0 +1,23 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Ugo Preiswerk</title>
|
||||
<style>
|
||||
body { font-family: sans-serif; max-width: 480px; margin: 80px auto; padding: 0 20px; }
|
||||
h1 { font-size: 1.4rem; margin-bottom: 8px; }
|
||||
p { color: #666; margin-bottom: 32px; }
|
||||
a { display: block; padding: 14px 18px; margin-bottom: 12px; border: 1px solid #e0e0e0; border-radius: 8px; text-decoration: none; color: #111; transition: background .15s; }
|
||||
a:hover { background: #f5f5f5; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Ugo Preiswerk</h1>
|
||||
<p>Dev junior · DevOps learner</p>
|
||||
<a href="https://ugo-preiswerk.site">Portfolio</a>
|
||||
<a href="https://blog.ugo-preiswerk.site">Blog</a>
|
||||
<a href="https://git.ugo-preiswerk.site">Gitea</a>
|
||||
<a href="https://uptime.ugo-preiswerk.site">Uptime</a>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Reference in New Issue
Block a user