frontend ci
This commit is contained in:
parent
3afc775f62
commit
568171c048
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue