commit bba21c5679b670e73c0c6fa8fb08fbca21fa43e1 Author: Kieran Date: Thu May 22 16:49:11 2025 +0100 init diff --git a/.drone.yaml b/.drone.yaml new file mode 100644 index 0000000..441a8b6 --- /dev/null +++ b/.drone.yaml @@ -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) \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..f5a4854 --- /dev/null +++ b/Dockerfile @@ -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"] \ No newline at end of file