2024-01-22 09:35:08 +05:30
|
|
|
steps:
|
2023-02-19 20:17:10 +05:30
|
|
|
backend:
|
|
|
|
image: rust
|
2024-04-13 06:21:50 +05:30
|
|
|
when:
|
|
|
|
event: [push, pull_request, tag, deployment, cron, manual, release]
|
2023-02-19 20:17:10 +05:30
|
|
|
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
|
|
|
|
|
2024-01-22 09:35:08 +05:30
|
|
|
build-docker-img:
|
|
|
|
image: woodpeckerci/plugin-docker-buildx
|
2023-02-19 20:17:10 +05:30
|
|
|
when:
|
|
|
|
event: [pull_request]
|
|
|
|
settings:
|
|
|
|
dry_run: true
|
|
|
|
repo: realaravinth/libmedium
|
2024-01-22 09:35:08 +05:30
|
|
|
username: realaravinth
|
|
|
|
platforms: linux/amd64,linux/arm64/v8
|
|
|
|
tag: latest
|
|
|
|
|
2023-02-19 20:17:10 +05:30
|
|
|
|
2024-01-22 09:35:08 +05:30
|
|
|
publish-docker-img:
|
|
|
|
image: woodpeckerci/plugin-docker-buildx
|
2023-02-19 20:17:10 +05:30
|
|
|
when:
|
|
|
|
event: [push, tag, deployment]
|
2024-01-22 09:35:08 +05:30
|
|
|
branch: master
|
2023-02-19 20:17:10 +05:30
|
|
|
settings:
|
2024-01-22 09:35:08 +05:30
|
|
|
repo: realaravinth/libmedium
|
2023-02-19 20:17:10 +05:30
|
|
|
username: realaravinth
|
|
|
|
password:
|
|
|
|
from_secret: DOCKER_TOKEN
|
2024-01-22 09:35:08 +05:30
|
|
|
platforms: linux/amd64,linux/arm64/v8
|
|
|
|
tag: latest
|