1 parent
923f4e397e
commit
6ea7512af8
7 files changed
+212
-14
No files matched your search
+49
@@ -0,0 +1,49 @@
|
||||
# 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]
|
||||
Reference in new issue
Block a user