2022-09-08 17:56:28 +05:30
|
|
|
pipeline:
|
|
|
|
backend:
|
|
|
|
image: rust
|
2022-09-09 17:16:22 +05:30
|
|
|
environment:
|
2022-09-09 17:36:28 +05:30
|
|
|
- DATABASE_URL=postgres://postgres:password@database:5432/postgres
|
2022-09-08 17:56:28 +05:30
|
|
|
commands:
|
2022-09-09 17:16:22 +05:30
|
|
|
- make migrate
|
2022-09-08 17:56:28 +05:30
|
|
|
- make
|
|
|
|
- make test
|
2022-12-28 16:34:37 +05:30
|
|
|
- make release
|
2022-09-08 17:56:28 +05:30
|
|
|
|
2022-12-28 16:34:37 +05:30
|
|
|
build_docker_img:
|
2022-09-08 17:56:28 +05:30
|
|
|
image: plugins/docker
|
2022-12-28 16:34:37 +05:30
|
|
|
when:
|
|
|
|
event: [pull_request]
|
|
|
|
settings:
|
|
|
|
dry_run: true
|
|
|
|
repo: realaravinth/librepages-forms
|
|
|
|
tags: latest
|
|
|
|
|
|
|
|
build_and_publish_docker_img:
|
|
|
|
image: plugins/docker
|
|
|
|
when:
|
|
|
|
event: [push, tag, deployment]
|
2022-09-08 17:56:28 +05:30
|
|
|
settings:
|
|
|
|
username: realaravinth
|
|
|
|
password:
|
|
|
|
from_secret: DOCKER_TOKEN
|
|
|
|
repo: realaravinth/librepages-forms
|
|
|
|
tags: latest
|
2022-09-09 17:16:22 +05:30
|
|
|
|
2022-12-28 16:34:37 +05:30
|
|
|
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]
|
|
|
|
|
2022-09-09 17:16:22 +05:30
|
|
|
services:
|
|
|
|
database:
|
|
|
|
image: postgres
|
|
|
|
environment:
|
|
|
|
- POSTGRES_PASSWORD=password
|