20
.drone.yaml
Normal file
20
.drone.yaml
Normal 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: registry_token
|
||||
commands:
|
||||
- dockerd &
|
||||
- docker login -u registry -p $TOKEN registry.v0l.io
|
||||
- docker build -t registry.v0l.io/notepush:latest .
|
||||
- docker push registry.v0l.io/notepush:latest
|
||||
- kill $(cat /var/run/docker.pid)
|
13
Dockerfile
Normal file
13
Dockerfile
Normal file
@ -0,0 +1,13 @@
|
||||
ARG IMAGE=rust:bookworm
|
||||
|
||||
FROM $IMAGE AS build
|
||||
WORKDIR /app/src
|
||||
RUN apt update && apt -y install git libssl-dev
|
||||
RUN git clone --single-branch --branch zap_stream_modifications https://github.com/nostrlabs-io/notepush.git
|
||||
RUN cargo install --path notepush --root /app/build
|
||||
|
||||
FROM $IMAGE AS runner
|
||||
WORKDIR /app
|
||||
ENV RUST_LOG=info
|
||||
COPY --from=build /app/build .
|
||||
ENTRYPOINT ["./bin/notepush"]
|
Reference in New Issue
Block a user