woodpecker test 55
This commit is contained in:
parent
ebe9030bfb
commit
75491a3f7c
2 changed files with 6 additions and 2 deletions
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
|
@ -3,7 +3,7 @@ name: Build on self hosted runner
|
|||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- master2
|
||||
jobs:
|
||||
build:
|
||||
name: Build Website
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue