frontend ci
This commit is contained in:
		| @@ -15,6 +15,7 @@ pipeline: | |||||||
|     commands: |     commands: | ||||||
|       - cd frontend |       - cd frontend | ||||||
|       - npm run build |       - npm run build | ||||||
|  |     group: build | ||||||
|   docker build: |   docker build: | ||||||
|     image: plugins/docker |     image: plugins/docker | ||||||
|     settings: |     settings: | ||||||
| @@ -47,3 +48,24 @@ pipeline: | |||||||
|         include: |         include: | ||||||
|           - frontend/* |           - frontend/* | ||||||
|           - .woodpecker/frontend.yml |           - .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 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user