forked from realaravinth/libmedium
43 lines
1 KiB
YAML
43 lines
1 KiB
YAML
steps:
|
|
backend:
|
|
image: rust
|
|
environment:
|
|
- GIT_HASH=8e77345f1597e40c2e266cb4e6dee74888918a61 # dummy value
|
|
- COMPILED_DATE=2021-07-21
|
|
commands:
|
|
- rustup component add rustfmt
|
|
- rustup component add clippy
|
|
- make check
|
|
- make lint
|
|
- make
|
|
- make test
|
|
|
|
build-docker-img:
|
|
image: woodpeckerci/plugin-docker-buildx
|
|
when:
|
|
event: [pull_request]
|
|
secrets: [docker_token]
|
|
settings:
|
|
dry_run: true
|
|
repo: realaravinth/libmedium
|
|
username: realaravinth
|
|
password:
|
|
from_secret: DOCKER_TOKEN
|
|
platforms: linux/amd64,linux/arm64/v8
|
|
tag: latest
|
|
|
|
|
|
publish-docker-img:
|
|
image: woodpeckerci/plugin-docker-buildx
|
|
when:
|
|
event: [push, tag, deployment]
|
|
branch: master
|
|
secrets: [docker_token]
|
|
settings:
|
|
dry_run: true
|
|
repo: realaravinth/libmedium
|
|
username: realaravinth
|
|
password:
|
|
from_secret: DOCKER_TOKEN
|
|
platforms: linux/amd64,linux/arm64/v8
|
|
tag: latest
|