feat: setup CI
This commit is contained in:
parent
f79343e9e9
commit
e1386fd6c7
3 changed files with 19 additions and 3 deletions
1
.dockerignore
Normal file
1
.dockerignore
Normal file
|
@ -0,0 +1 @@
|
||||||
|
/target
|
15
.woodpecker.yml
Normal file
15
.woodpecker.yml
Normal 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
|
6
Makefile
6
Makefile
|
@ -16,11 +16,11 @@ doc: ## Generate documentation
|
||||||
cargo doc --no-deps --workspace --all-features
|
cargo doc --no-deps --workspace --all-features
|
||||||
|
|
||||||
docker: ## Build Docker image
|
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-publish: docker ## Build and publish Docker image
|
||||||
docker push realaravinth/forms:master
|
docker push realaravinth/librepages-forms:master
|
||||||
docker push realaravinth/forms:latest
|
docker push realaravinth/librepages-forms:latest
|
||||||
|
|
||||||
env: ## Setup development environtment
|
env: ## Setup development environtment
|
||||||
cargo fetch
|
cargo fetch
|
||||||
|
|
Loading…
Reference in a new issue