forgejo-notifications-core/.woodpecker.yml

39 lines
993 B
YAML
Raw Normal View History

2023-09-18 21:01:08 +05:30
steps:
setup_forgeo:
image: python
commands:
2023-09-18 22:19:52 +05:30
- pip install requests
- sleep 10 && curl http://forgejo:3000
- make env.config
2023-09-18 21:01:08 +05:30
build:
2023-09-18 22:05:19 +05:30
image: node:18
commands:
2023-09-19 00:02:41 +05:30
- curl http://forgejo:3000
2023-09-18 22:10:12 +05:30
- corepack enable
- corepack prepare pnpm@latest-8 --activate
2023-09-18 22:05:19 +05:30
- pnpm install
- pnpm run lint
- pnpm run test
2023-09-18 22:05:19 +05:30
- pnpm run build
- pnpm run doc
2023-09-18 21:01:08 +05:30
services:
forgejo:
image: codeberg.org/forgejo/forgejo:1.20.1-0
environment:
2023-09-19 00:21:33 +05:30
- USER_UID=1001
- USER_GID=1001
2023-09-18 21:01:08 +05:30
volumes:
2023-09-19 00:21:33 +05:30
- /woodpecker/src/git.batsense.net/realaravinth/forgejo-notifications-core/integration/conf/ci/:/data/gitea/conf/
2023-09-19 00:02:41 +05:30
#
# 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]