From 5f2f5fc567c9f86105784698e2cd22c81e78d2e9 Mon Sep 17 00:00:00 2001 From: Aravinth Manivannan Date: Wed, 4 Oct 2023 22:44:29 +0530 Subject: [PATCH] feat: enable woodpecker --- .woodpecker.yml | 28 ++++++++++++++++++++++++++++ README.md | 2 +- 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 .woodpecker.yml 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)