diff --git a/.drone.yaml b/.drone.yaml index 441a8b6..1464c03 100644 --- a/.drone.yaml +++ b/.drone.yaml @@ -5,15 +5,23 @@ name: default metadata: namespace: git +volumes: + - name: cache + claim: + name: docker-cache + steps: - name: build image: docker privileged: true + volumes: + - name: cache + path: /cache environment: TOKEN: from_secret: registry_token commands: - - dockerd & + - dockerd --data-root /cache/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 diff --git a/Dockerfile b/Dockerfile index f5a4854..e1c4c9e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ 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 git clone --single-branch --branch zap_stream_modifications https://git.v0l.io/Kieran/notepush.git RUN cargo install --path notepush --root /app/build FROM $IMAGE AS runner