frontend ci
ci/woodpecker/push/tools-wasm-pack-plugin Pipeline was successful Details
ci/woodpecker/push/wasm-o-x-rust Pipeline was successful Details
ci/woodpecker/push/frontend Pipeline failed Details

This commit is contained in:
Gleb Koval 2022-08-09 01:14:02 +00:00
parent 3afc775f62
commit 568171c048
Signed by: cyclane
GPG Key ID: 15E168A8B332382C
1 changed files with 22 additions and 0 deletions

View File

@ -15,6 +15,7 @@ pipeline:
commands:
- cd frontend
- npm run build
group: build
docker build:
image: plugins/docker
settings:
@ -47,3 +48,24 @@ pipeline:
include:
- frontend/*
- .woodpecker/frontend.yml
deploy:
image: plugins/ssh
settings:
host: 192.168.3.5
username: root
key:
from_secret: SSH_KEY
script:
- docker stop game-algorithms || echo No existing deployment
- docker rm game-algorithms || echo No existing deployment
- docker image rm git.koval.net/cyclane/game-algorithms/frontend:latest || echo No existing image
- docker pull git.koval.net/cyclane/game-algorithms/frontend:latest
- docker run --name game-algorithms -p 3000:3000 -d git.koval.net/cyclane/game-algorithms/frontend:latest
when:
branch: main
path:
include:
- frontend/*
- .woodpecker/frontend.yml
depends_on:
- wasm-o-x-rust