diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..3ed2df2 --- /dev/null +++ b/.woodpecker.yml @@ -0,0 +1,28 @@ +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 diff --git a/README.md b/README.md index 50b07ae..c666408 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@

[![Docker](https://img.shields.io/docker/pulls/realaravinth/dumbserve)](https://hub.docker.com/r/realaravinth/dumbserve) -[![Build](https://github.com/realaravinth/dumbserve/actions/workflows/linux.yml/badge.svg)](https://github.com/realaravinth/dumbserve/actions/workflows/linux.yml) +[![status-badge](https://ci.batsense.net/api/badges/95/status.svg)](https://ci.batsense.net/repos/95) [![dependency status](https://deps.rs/repo/github/realaravinth/dumbserve/status.svg)](https://deps.rs/repo/github/realaravinth/dumbserve) [![codecov](https://codecov.io/gh/realaravinth/dumbserve/branch/master/graph/badge.svg)](https://codecov.io/gh/realaravinth/dumbserve)