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: on:
push: push:
branches: branches:
- master - master2
jobs: jobs:
build: build:
name: Build Website name: Build Website

View file

@ -5,10 +5,14 @@ when:
steps: steps:
- name: build - name: build
image: node:bookworm-slim image: node:bookworm-slim
commands: commands:
- npm install - npm install
- npm run build - npm run build
- apt update - apt update
- apt upgrade - apt upgrade
- 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 - apt -y install rsync
- rsync -avzh ./dist ansible@$REMOTE_IP:/var/www/polsevev/dist