feat: setup CI

This commit is contained in:
Aravinth Manivannan 2022-09-08 17:56:28 +05:30
parent f79343e9e9
commit e1386fd6c7
Signed by: realaravinth
GPG key ID: AD9F0F08E855ED88
3 changed files with 19 additions and 3 deletions

1
.dockerignore Normal file
View file

@ -0,0 +1 @@
/target

15
.woodpecker.yml Normal file
View file

@ -0,0 +1,15 @@
pipeline:
backend:
image: rust
commands:
- make
- make test
publish:
image: plugins/docker
settings:
username: realaravinth
password:
from_secret: DOCKER_TOKEN
repo: realaravinth/librepages-forms
tags: latest

View file

@ -16,11 +16,11 @@ doc: ## Generate documentation
cargo doc --no-deps --workspace --all-features
docker: ## Build Docker image
docker build -t realaravinth/forms:master -t realaravinth/forms:latest .
docker build -t realaravinth/librepages-forms:master -t realaravinth/librepages-forms:latest .
docker-publish: docker ## Build and publish Docker image
docker push realaravinth/forms:master
docker push realaravinth/forms:latest
docker push realaravinth/librepages-forms:master
docker push realaravinth/librepages-forms:latest
env: ## Setup development environtment
cargo fetch