frontend with build and publish ci
All checks were successful
ci/woodpecker/push/tools-wasm-pack-plugin Pipeline was successful
ci/woodpecker/push/wasm-o-x-rust Pipeline was successful
ci/woodpecker/push/frontend Pipeline was successful

This commit is contained in:
2022-08-09 00:38:49 +00:00
parent e5e066bdcc
commit 3afc775f62
22 changed files with 5473 additions and 0 deletions

49
.woodpecker/frontend.yml Normal file
View File

@@ -0,0 +1,49 @@
pipeline:
deps:
image: node:alpine
commands:
- cd frontend
- npm install --save-dev
eslint:
image: node:alpine
commands:
- cd frontend
- npm run lint
group: build
svelte:
image: node:alpine
commands:
- cd frontend
- npm run build
docker build:
image: plugins/docker
settings:
dry_run: true
repo: git.koval.net/cyclane/game-algorithms/frontend
tags: latest
context: frontend
dockerfile: frontend/Dockerfile
when:
branch:
exclude: [main]
path:
include:
- frontend/*
- .woodpecker/frontend.yml
docker build and publish:
image: plugins/docker
settings:
registry: git.koval.net
username: cyclane
password:
from_secret: DEPLOY_TOKEN
repo: git.koval.net/cyclane/game-algorithms/frontend
tags: latest
context: frontend
dockerfile: frontend/Dockerfile
when:
branch: main
path:
include:
- frontend/*
- .woodpecker/frontend.yml