2024-07-11 02:11:02 +05:30
|
|
|
steps:
|
2023-10-04 22:44:29 +05:30
|
|
|
backend:
|
2024-07-11 02:11:02 +05:30
|
|
|
image: rust:1.79-bullseye
|
2023-10-04 22:44:29 +05:30
|
|
|
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]
|
2024-07-11 02:11:02 +05:30
|
|
|
branch: master
|
2023-10-04 22:44:29 +05:30
|
|
|
settings:
|
|
|
|
username: realaravinth
|
|
|
|
password:
|
|
|
|
from_secret: DOCKER_TOKEN
|
|
|
|
repo: realaravinth/dumbserve
|
|
|
|
tags: latest
|