Added CI lint job
This commit is contained in:
parent
f77be877db
commit
26cd2e1bea
2 changed files with 9 additions and 2 deletions
25
.woodpecker/.deploy.yml
Normal file
25
.woodpecker/.deploy.yml
Normal 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
7
.woodpecker/.lint.yml
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
platform: 'linux/amd64'
|
||||
|
||||
pipeline:
|
||||
lint:
|
||||
image: 'rustlang/rust:nightly'
|
||||
commands:
|
||||
- cargo fmt -- --check
|
||||
Loading…
Add table
Add a link
Reference in a new issue