libmedium/.woodpecker.yml

43 lines
1,008 B
YAML
Raw Normal View History

2024-01-22 09:35:08 +05:30
steps:
2023-02-19 20:17:10 +05:30
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
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]
2024-01-22 09:35:08 +05:30
secrets: [docker_token]
2023-02-19 20:17:10 +05:30
settings:
dry_run: true
repo: realaravinth/libmedium
2024-01-22 09:35:08 +05:30
username: realaravinth
password:
from_secret: DOCKER_TOKEN
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
secrets: [docker_token]
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