38 lines
993 B
YAML
38 lines
993 B
YAML
steps:
|
|
setup_forgeo:
|
|
image: python
|
|
commands:
|
|
- pip install requests
|
|
- sleep 10 && curl http://forgejo:3000
|
|
- make env.config
|
|
|
|
build:
|
|
image: node:18
|
|
commands:
|
|
- curl http://forgejo:3000
|
|
- corepack enable
|
|
- corepack prepare pnpm@latest-8 --activate
|
|
- pnpm install
|
|
- pnpm run lint
|
|
- pnpm run test
|
|
- pnpm run build
|
|
- pnpm run doc
|
|
|
|
services:
|
|
forgejo:
|
|
image: codeberg.org/forgejo/forgejo:1.20.1-0
|
|
environment:
|
|
- USER_UID=1001
|
|
- USER_GID=1001
|
|
volumes:
|
|
- /woodpecker/src/git.batsense.net/realaravinth/forgejo-notifications-core/integration/conf/ci/:/data/gitea/conf/
|
|
#
|
|
# deploy_docs:
|
|
# image: python
|
|
# when:
|
|
# event: [push, pull_request, tag, deployment]
|
|
# commands:
|
|
# - make env
|
|
# - make
|
|
# - make ci-deploy
|
|
# secrets: [GITEA_WRITE_DEPLOY_KEY, LIBREPAGES_DEPLOY_SECRET]
|