woodpecker test 55

This commit is contained in:
Rolf Martin Glomsrud 2024-08-04 00:32:30 +02:00
parent ebe9030bfb
commit 75491a3f7c
2 changed files with 6 additions and 2 deletions

View file

@ -3,7 +3,7 @@ name: Build on self hosted runner
on:
push:
branches:
- master
- master2
jobs:
build:
name: Build Website

View file

@ -5,10 +5,14 @@ when:
steps:
- name: build
image: node:bookworm-slim
commands:
- npm install
- npm run build
- apt update
- apt upgrade
- apt -y install rsync
- mkdir /root/.ssh && chmod 0700 /root/.ssh
- touch /root/.ssh/id_rsa && echo $SSH_KEY > /root/.ssh/id_rsa && chmod 0600 /root/.ssh/id_rsa
- apt -y install rsync
- rsync -avzh ./dist ansible@$REMOTE_IP:/var/www/polsevev/dist