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

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

View file

@ -9,6 +9,7 @@ steps:
build: build:
image: node:18 image: node:18
commands: commands:
- curl http://forgejo:3000
- corepack enable - corepack enable
- corepack prepare pnpm@latest-8 --activate - corepack prepare pnpm@latest-8 --activate
- pnpm install - pnpm install
@ -21,9 +22,21 @@ services:
forgejo: forgejo:
image: codeberg.org/forgejo/forgejo:1.20.1-0 image: codeberg.org/forgejo/forgejo:1.20.1-0
environment: environment:
- USER_UID=1000
- USER_GID=1000
- FORGEJO_cors_ENABLED=true - FORGEJO_cors_ENABLED=true
- FORGEJO_cors_ALLOW_DOMAIN="*" - FORGEJO_cors_ALLOW_DOMAIN="*"
- FORGEJO_cors_METHODS="GET,HEAD,POST,PUT,PATCH,DELETE,OPTIONS" - FORGEJO_cors_METHODS="GET,HEAD,POST,PUT,PATCH,DELETE,OPTIONS"
- FORGEJO_cors_ALLOW_CREDENTIALS=false - FORGEJO_cors_ALLOW_CREDENTIALS=false
volumes: 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]