librepages/.woodpecker.yml
Aravinth Manivannan 7579bbfc86
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
fix: CI: REMOVE QUOTES AROUND WOODPECKER CONFIGURATION
what a waste of time
2022-12-30 01:35:02 +05:30

104 lines
3.3 KiB
YAML

pipeline:
backend:
image: rust
environment:
- DATABASE_URL=postgres://postgres:password@database:5432/postgres
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 component add rustfmt
- rustup component add clippy
# rewrite conducotr configuration
- sed -i 's%url = "http:\/\/localhost:5000"%url = "http:\/\/librepages-conductor:5000"%' config/default.toml
- sed -i 's%url = "http:\/\/localhost:6000"%url = "http:\/\/librepages-forms:6000"%' config/default.toml
- make dev-env
- make migrate
- make lint
- make test
- make release
build_docker_img:
image: plugins/docker
when:
event: [pull_request]
settings:
dry_run: true
repo: realaravinth/librepages
tags: latest
build_and_publish_docker_img:
image: plugins/docker
when:
event: [push, tag, deployment]
settings:
username: realaravinth
password:
from_secret: DOCKER_TOKEN
repo: realaravinth/librepages
tags:
latest
# build_publisher_docker_img:
# image: plugins/docker
# when:
# event: [push, tag, deployment]
# settings:
# dry_run: true
# dockerfile: scripts/publish-bins-docker
# purge: false
# repo: realaravinth/librepages-publisher
# tags: latest
#
publish_bins:
image: rust
when:
event: [push, tag, deployment]
commands:
- apt update
- apt-get -y --no-install-recommends install gpg tar curl wget
- echo -n "$RELEASE_BOT_GPG_SIGNING_KEY" | gpg --batch --import --pinentry-mode loopback
- scripts/bin-publish.sh publish master latest $DUMBSERVE_PASSWORD
secrets: [RELEASE_BOT_GPG_SIGNING_KEY, DUMBSERVE_PASSWORD, GPG_PASSWORD]
services:
database:
image: postgres
environment:
- POSTGRES_PASSWORD=password
forms-postgres:
image: postgres
environment:
- POSTGRES_PASSWORD=password
librepages-forms:
image: realaravinth/librepages-forms
command: forms serve
environment:
- LPFORMS_SOURCE_CODE=https://git.batsense.net/LibrePages/forms
- LPFORMS_SERVER__PROXY_HAS_TLS=false
- LPFORMS_DEBUG=false
- LPFORMS_SERVER_URL_PREFIX=""
- LPFORMS_SERVER_DOMAIN=forms.librepages.test
- LPFORMS_SERVER_IP=0.0.0.0
- LPFORMS_SERVER_PROXY_HAS_TLS=false
- LPFORMS_DASH_API_KEY=longrandomlygeneratedpassword
- LPFORMS_DATABASE_POOL=2
- PORT=6000
- DATABASE_URL=postgres://postgres:password@forms-postgres:5432/postgres
librepages-conductor:
image: realaravinth/librepages-conductor
command: conductor serve
environment:
- LPCONDUCTOR_SERVER__PROXY_HAS_TLS=false
- LPCONDUCTOR_DEBUG=false
- LPCONDUCTOR_CONDUCTOR=dummy
- LPCONDUCTOR_SERVER_URL_PREFIX=""
- LPCONDUCTOR_SERVER_DOMAIN=librepages.test
- LPCONDUCTOR_SERVER_IP=0.0.0.0
- LPCONDUCTOR_SERVER_PROXY_HAS_TLS=false
- LPCONDUCTOR_SERVER_PORT=7000
- LPCONDUCTOR_SOURCE_CODE=https://example.org
- LPCONDUCTOR_CREDS_TOKEN=longrandomlygeneratedpassword
- PORT=5000