fix: CI: UID and custom config file
ci/woodpecker/push/woodpecker Pipeline failed Details

This commit is contained in:
Aravinth Manivannan 2023-09-19 00:02:41 +05:30
parent 4773c97187
commit afa6fd0c6a
Signed by: realaravinth
GPG Key ID: F8F50389936984FF
1 changed files with 14 additions and 1 deletions

View File

@ -9,6 +9,7 @@ steps:
build:
image: node:18
commands:
- curl http://forgejo:3000
- corepack enable
- corepack prepare pnpm@latest-8 --activate
- pnpm install
@ -21,9 +22,21 @@ services:
forgejo:
image: codeberg.org/forgejo/forgejo:1.20.1-0
environment:
- USER_UID=1000
- USER_GID=1000
- FORGEJO_cors_ENABLED=true
- FORGEJO_cors_ALLOW_DOMAIN="*"
- FORGEJO_cors_METHODS="GET,HEAD,POST,PUT,PATCH,DELETE,OPTIONS"
- FORGEJO_cors_ALLOW_CREDENTIALS=false
volumes:
- /woodpecker/src/git.batsense.net/realaravinth/forgejo-notifications-core:/data/gitea/conf/ci/app.ini
- /woodpecker/src/git.batsense.net/realaravinth/forgejo-notifications-core/integration/conf/ci/app.ini:/data/gitea/conf/app.ini
#
# 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]