game-algorithms/.woodpecker/frontend.yml

74 lines
1.6 KiB
YAML
Raw Permalink Normal View History

2022-08-09 00:38:49 +00:00
pipeline:
deps:
image: node:alpine
commands:
- cd frontend
- npm install --save-dev
2022-08-09 09:41:51 +00:00
when:
path:
include:
- frontend/*
- .woodpecker/frontend.yml
2022-08-09 09:43:48 +00:00
ignore_message: "[ALL]"
2022-08-09 00:38:49 +00:00
eslint:
image: node:alpine
commands:
- cd frontend
- npm run lint
group: build
2022-08-09 09:41:51 +00:00
when:
path:
include:
- frontend/*
- .woodpecker/frontend.yml
2022-08-09 09:43:48 +00:00
ignore_message: "[ALL]"
2022-08-09 00:38:49 +00:00
svelte:
image: node:alpine
commands:
- cd frontend
- npm run build
2022-08-09 01:14:02 +00:00
group: build
2022-08-09 09:41:51 +00:00
when:
path:
include:
- frontend/*
- .woodpecker/frontend.yml
2022-08-09 09:43:48 +00:00
ignore_message: "[ALL]"
2022-08-09 00:38:49 +00:00
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
2022-08-09 09:43:48 +00:00
ignore_message: "[ALL]"
2022-08-09 00:38:49 +00:00
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
2022-08-09 09:43:48 +00:00
ignore_message: "[ALL]"
2022-08-09 01:14:02 +00:00
depends_on:
- wasm-o-x-rust
2022-08-09 13:46:04 +00:00
- wasm-connect-four-rust