This commit is contained in:
10
.drone.yaml
10
.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
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user