Finally got my own ci/cd woooo

This commit is contained in:
Rolf Martin Glomsrud 2024-08-04 01:30:07 +02:00
parent 4a34d5d0c7
commit 88d816c144
2 changed files with 6 additions and 10 deletions

View file

@ -10,8 +10,8 @@ steps:
- npm install
- npm run build
- mkdir /root/.ssh && chmod 0700 /root/.ssh
- touch /root/.ssh/id_rsa
- echo $SSH_KEY > /root/.ssh/id_rsa
- echo $SSH_KEY | base64 --decode >> /root/.ssh/id_rsa
- chmod 0600 /root/.ssh/id_rsa
- /bin/rsync -avzh ./dist ansible@$REMOTE_IP:/var/www/polsevev/dist
secrets: [ SSH_KEY, REMOTE_IP ]
- ssh-keyscan $REMOTE_IP >> /root/.ssh/known_hosts
- /bin/rsync -avzh ./dist ansible@$REMOTE_IP:/var/www/polsevev/
secrets: [ SSH_KEY, remote_ip ]

View file

@ -13,13 +13,9 @@ import { SITE_TITLE, SITE_DESCRIPTION } from '../consts';
<body>
<Header />
<main>
<h1>Yo!</h1>
<h1>Yo! Welcome to my humble site</h1>
<p>
This is just an initial test of the Astro version of my personal website. So far, i honestly love it!
</p>
<p>
I still gotta style this though, and as a certified devops guy, that will probably not go so well
This site is a continual WIP, and this is just an alpha of what i hope it will become :)
</p>
</main>
<Footer />