fix: CI: start conductor service container
This commit is contained in:
parent
b559bc56b1
commit
02e3e3f371
1 changed files with 25 additions and 19 deletions
|
@ -1,4 +1,24 @@
|
||||||
pipeline:
|
steps:
|
||||||
|
librepages-conductor:
|
||||||
|
image: realaravinth/librepages-conductor
|
||||||
|
detach: true
|
||||||
|
environment:
|
||||||
|
- LPCONDUCTOR__SOURCE_CODE=https://git.batsense.net/LibrePages/conductor
|
||||||
|
- LPCONDUCTOR_SERVER__PROXY_HAS_TLS=false
|
||||||
|
- LPCONDUCTOR_DEBUG=false
|
||||||
|
- LPCONDUCTOR_CONDUCTOR=dummy
|
||||||
|
- 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_USERNAME=librepages_api
|
||||||
|
- LPCONDUCTOR_CREDS_TOKEN=longrandomlygeneratedpassword
|
||||||
|
- PORT=5000
|
||||||
|
- LPCONDUCTOR_CREDS_PASSWORD=longrandomlygeneratedpassword
|
||||||
|
commands:
|
||||||
|
- conductor serve
|
||||||
|
|
||||||
backend:
|
backend:
|
||||||
image: rust
|
image: rust
|
||||||
environment:
|
environment:
|
||||||
|
@ -29,12 +49,14 @@ pipeline:
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
when:
|
when:
|
||||||
event: [push, tag, deployment]
|
event: [push, tag, deployment]
|
||||||
|
branch: master
|
||||||
settings:
|
settings:
|
||||||
username: realaravinth
|
username: realaravinth
|
||||||
password:
|
password:
|
||||||
from_secret: DOCKER_TOKEN
|
from_secret: DOCKER_TOKEN
|
||||||
repo: realaravinth/librepages
|
repo: realaravinth/librepages
|
||||||
tags: latest
|
tags:
|
||||||
|
latest
|
||||||
|
|
||||||
# build_publisher_docker_img:
|
# build_publisher_docker_img:
|
||||||
# image: plugins/docker
|
# image: plugins/docker
|
||||||
|
@ -51,6 +73,7 @@ pipeline:
|
||||||
image: rust
|
image: rust
|
||||||
when:
|
when:
|
||||||
event: [push, tag, deployment]
|
event: [push, tag, deployment]
|
||||||
|
branch: master
|
||||||
commands:
|
commands:
|
||||||
- apt update
|
- apt update
|
||||||
- apt-get -y --no-install-recommends install gpg tar curl wget
|
- apt-get -y --no-install-recommends install gpg tar curl wget
|
||||||
|
@ -63,20 +86,3 @@ services:
|
||||||
image: postgres
|
image: postgres
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_PASSWORD=password
|
- POSTGRES_PASSWORD=password
|
||||||
|
|
||||||
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_USERNAME="librepages_api"
|
|
||||||
- LPCONDUCTOR_CREDS_PASSWORD="longrandomlygeneratedpassword"
|
|
||||||
- PORT=5000
|
|
||||||
|
|
Loading…
Reference in a new issue