From 88d816c14490d1da55817fa7709902636a71ff2f Mon Sep 17 00:00:00 2001 From: polsevev Date: Sun, 4 Aug 2024 01:30:07 +0200 Subject: [PATCH] Finally got my own ci/cd woooo --- .woodpecker/main.yml | 8 ++++---- src/pages/index.astro | 8 ++------ 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/.woodpecker/main.yml b/.woodpecker/main.yml index 4835adb..aa061b2 100644 --- a/.woodpecker/main.yml +++ b/.woodpecker/main.yml @@ -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 ] diff --git a/src/pages/index.astro b/src/pages/index.astro index 95f8047..27b9e3f 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -13,13 +13,9 @@ import { SITE_TITLE, SITE_DESCRIPTION } from '../consts';
-

Yo!

+

Yo! Welcome to my humble site

- This is just an initial test of the Astro version of my personal website. So far, i honestly love it! -

- -

- 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 :)