Added CI lint job

This commit is contained in:
Jef Roosens 2022-04-02 21:02:15 +02:00
parent f77be877db
commit 26cd2e1bea
Signed by: Jef Roosens
GPG key ID: B75D4F293C7052DB
2 changed files with 9 additions and 2 deletions

25
.woodpecker/.deploy.yml Normal file
View file

@ -0,0 +1,25 @@
platform: 'linux/amd64'
branches: 'main'
pipeline:
release:
image: 'plugins/docker'
settings:
repo: 'chewingbever/site'
tag:
- 'latest'
- "${CI_COMMIT_TAG}"
secrets:
- 'docker_username'
- 'docker_password'
when:
event: tag
deploy:
image: 'curlimages/curl'
secrets:
- 'webhook'
commands:
- curl -XPOST --fail -s "$WEBHOOK"
when:
event: tag

7
.woodpecker/.lint.yml Normal file
View file

@ -0,0 +1,7 @@
platform: 'linux/amd64'
pipeline:
lint:
image: 'rustlang/rust:nightly'
commands:
- cargo fmt -- --check