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