29 lines
630 B
YAML
29 lines
630 B
YAML
steps:
|
|
backend:
|
|
image: rust:1.79-bullseye
|
|
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]
|
|
branch: master
|
|
settings:
|
|
username: realaravinth
|
|
password:
|
|
from_secret: DOCKER_TOKEN
|
|
repo: realaravinth/dumbserve
|
|
tags: latest
|