29 lines
598 B
YAML
29 lines
598 B
YAML
|
pipeline:
|
||
|
backend:
|
||
|
image: rust
|
||
|
environment:
|
||
|
- DATABASE_URL=postgres://postgres:password@database:5432/postgres
|
||
|
commands:
|
||
|
- make
|
||
|
- make test
|
||
|
|
||
|
build_docker_img:
|
||
|
image: plugins/docker
|
||
|
when:
|
||
|
event: [pull_request]
|
||
|
settings:
|
||
|
dry_run: true
|
||
|
repo: realaravinth/dumbserve
|
||
|
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/dumbserve
|
||
|
tags: latest
|