Compose+Drone
All checks were successful
continuous-integration/drone Build is passing

This commit is contained in:
kieran 2024-03-26 23:27:18 +00:00
parent a9d2c11ce2
commit 298bfd994b
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941
2 changed files with 32 additions and 0 deletions

20
.drone.yml Normal file
View File

@ -0,0 +1,20 @@
kind: pipeline
type: kubernetes
name: default
metadata:
namespace: git
steps:
- name: build
image: docker
privileged: true
environment:
TOKEN:
from_secret: gitea
commands:
- dockerd &
- docker login -u kieran -p $TOKEN git.v0l.io
- docker buildx build --push -t git.v0l.io/kieran/zap-stream-core:latest .
- kill $(cat /var/run/docker.pid)

12
docker-compose.yml Normal file
View File

@ -0,0 +1,12 @@
name: zap-stream-core
services:
app:
build:
context: .
environment:
- "RUST_LOG=info"
ports:
- "3333:3333"
- "3334:3334"
volumes:
- "./config.toml:/app/config.toml:ro"