diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..ea8c4bf --- /dev/null +++ b/.dockerignore @@ -0,0 +1 @@ +/target diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..48bdb01 --- /dev/null +++ b/.woodpecker.yml @@ -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 diff --git a/Makefile b/Makefile index a8b7502..9d83266 100644 --- a/Makefile +++ b/Makefile @@ -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