50 lines
1.1 KiB
YAML
50 lines
1.1 KiB
YAML
|
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
|