conductor/.woodpecker.yml

41 lines
1.1 KiB
YAML
Raw Normal View History

2024-06-07 23:20:53 +05:30
steps:
test:
2022-10-05 16:09:00 +05:30
image: rust
# environment:
# - DATABASE_URL=postgres://postgres:password@database:5432/postgres
commands:
# - make migrate
- make
- make test
2022-12-12 21:00:18 +05:30
- make release
publish_bins:
image: rust
2024-06-07 23:20:53 +05:30
when:
event: [push, tag, deployment]
branch: master
2022-12-12 21:00:18 +05:30
commands:
- apt update
2022-12-12 21:08:38 +05:30
- apt-get -y --no-install-recommends install gpg tar curl wget
2022-12-12 21:00:18 +05:30
- echo -n "$RELEASE_BOT_GPG_SIGNING_KEY" | gpg --batch --import --pinentry-mode loopback
- ./scripts/bin-publish.sh publish master latest $DUMBSERVE_PASSWORD
secrets: [ RELEASE_BOT_GPG_SIGNING_KEY, DUMBSERVE_PASSWORD, GPG_PASSWORD ]
2022-10-05 16:09:00 +05:30
publish:
image: plugins/docker
2024-06-07 23:20:53 +05:30
when:
event: [push, tag, deployment]
branch: master
2022-10-05 16:09:00 +05:30
settings:
username: realaravinth
password:
from_secret: DOCKER_TOKEN
2022-11-16 16:14:07 +05:30
repo: realaravinth/librepages-conductor
2022-10-05 16:09:00 +05:30
tags: latest
#services:
# database:
# image: postgres
# environment:
# - POSTGRES_PASSWORD=password