libmedium/.woodpecker.yml
Aravinth Manivannan 032d67cd27
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/pr/woodpecker Pipeline was successful
ci/woodpecker/pull_request_closed/woodpecker Pipeline was successful
fix: guard steps with events and rm secret in PR workflow
2024-04-13 06:21:50 +05:30

41 lines
1,014 B
YAML

steps:
backend:
image: rust
when:
event: [push, pull_request, tag, deployment, cron, manual, release]
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]
settings:
dry_run: true
repo: realaravinth/libmedium
username: realaravinth
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:
repo: realaravinth/libmedium
username: realaravinth
password:
from_secret: DOCKER_TOKEN
platforms: linux/amd64,linux/arm64/v8
tag: latest