Files
meow/.drone.yml
T
yves 6ea7512af8
continuous-integration/drone Build is failing
server heathcheck
2026-11-21 12:27:13 +01:00

50 lines
1.2 KiB
YAML

# Meow v2 (Rust workspace): checks, then the meowsrv image on Docker Hub.
#
# Repository secrets (same names as the Go meowsrv pipeline):
# dockerhub-user, dockerhub-pw Docker Hub credentials (an access token is better)
# dockerhub-repo e.g. "yourname/meowsrv"
# Images are tagged "v2" and "v2-<commit>", never "latest": the v1 server can keep
# using the same Docker Hub repository during the migration.
kind: pipeline
type: docker
name: meowsrv
services:
- name: redis
image: redis:7-alpine
steps:
- name: check
image: rust:1
environment:
MEOW_TEST_REDIS: redis://redis:6379/15
commands:
- rustup component add rustfmt clippy
- scripts/check.sh
- name: e2e
image: rust:1
commands:
# CLI + two servers, in memory then on Redis.
- tests/e2e.sh
- E2E_STORAGE=redis://redis:6379/14 tests/e2e.sh
- name: publish
image: plugins/docker
settings:
username:
from_secret: dockerhub-user
password:
from_secret: dockerhub-pw
repo:
from_secret: dockerhub-repo
dockerfile: Dockerfile
context: .
tags:
- v2
- v2-${DRONE_COMMIT_SHA:0:8}
when:
branch: [main]
event: [push]