starchart/.woodpecker.yml

58 lines
1.6 KiB
YAML
Raw Permalink Normal View History

2025-01-02 16:53:47 +05:30
steps:
2025-01-02 17:57:26 +05:30
setup:
image: python
when:
event: [push, pull_request, tag, deployment]
environment:
POSTGRES_DATABASE_URL: postgres://postgres:password@database:5432/postgres
commands:
- pip install requests
- sed -i 's/localhost/forgejo/' scripts/gitea.py
- python ./scripts/gitea.py
2025-01-02 16:53:47 +05:30
test:
image: rust
when:
event: [push, pull_request, tag, deployment]
environment:
POSTGRES_DATABASE_URL: postgres://postgres:password@database:5432/postgres
SQLITE_DATABASE_URL: sqlite:///tmp/admin.db
2025-01-02 18:28:04 +05:30
FORGEJO_HOST: http://forgejo:3000
2025-01-02 16:53:47 +05:30
commands:
# - curl -fsSL https://deb.nodesource.com/setup_16.x | bash - &&\
# - apt update && apt-get -y --no-install-recommends install nodejs tar gpg curl wget
# - rustup toolchain install nightly
# - rustup override set nightly
- rustup component add rustfmt
- rustup component add clippy
# - export FORGEFLUX_server_COOKIE_SECRET=d05604b56ffd0f57200be49313a9e51436ca8f1678b9ffdf8d2602d5e9839f05
- make migrate
- make
2025-01-02 17:16:34 +05:30
# - make lint
2025-01-02 17:57:26 +05:30
- make test.workspaces
2025-01-02 16:53:47 +05:30
build_docker_img:
image: plugins/docker
when:
event: [pull_request]
settings:
dry_run: true
repo: forgeflux/starchart
tags: latest
services:
2025-01-02 17:57:26 +05:30
forgejo:
image: codeberg.org/forgejo/forgejo:9
environment:
FORGEJO__security__INSTALL_LOCK: true
FORGEJO__federation__ENABLED: true
FORGEJO__server__ROOT_URL: http://forgejo
FORGEJO__server__HTTP_PORT: 3000
2025-01-02 17:57:26 +05:30
2025-01-02 16:53:47 +05:30
database:
image: postgres
environment:
POSTGRES_PASSWORD: password