feat: migrate to woodpecker CI

This commit is contained in:
Aravinth Manivannan 2023-02-19 20:17:10 +05:30
parent 3343b698aa
commit 7d4c1298c1
Signed by untrusted user: realaravinth
GPG key ID: AD9F0F08E855ED88

33
.woodpecker.yml Normal file
View file

@ -0,0 +1,33 @@
pipeline:
backend:
image: rust
environment:
- GIT_HASH=8e77345f1597e40c2e266cb4e6dee74888918a61 # dummy value
- COMPILED_DATE=2021-07-21
commands:
- rustup component add rustfmt
- rustup component add clippy
- make check
- make lint
- make
- make test
build_docker_img:
image: plugins/docker
when:
event: [pull_request]
settings:
dry_run: true
repo: realaravinth/libmedium
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/libmedium
tags: latest