This commit is contained in:
10
.drone.yaml
10
.drone.yaml
@ -5,15 +5,23 @@ name: default
|
|||||||
metadata:
|
metadata:
|
||||||
namespace: git
|
namespace: git
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: cache
|
||||||
|
claim:
|
||||||
|
name: docker-cache
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build
|
||||||
image: docker
|
image: docker
|
||||||
privileged: true
|
privileged: true
|
||||||
|
volumes:
|
||||||
|
- name: cache
|
||||||
|
path: /cache
|
||||||
environment:
|
environment:
|
||||||
TOKEN:
|
TOKEN:
|
||||||
from_secret: registry_token
|
from_secret: registry_token
|
||||||
commands:
|
commands:
|
||||||
- dockerd &
|
- dockerd --data-root /cache/dockerd &
|
||||||
- docker login -u registry -p $TOKEN registry.v0l.io
|
- docker login -u registry -p $TOKEN registry.v0l.io
|
||||||
- docker build -t registry.v0l.io/notepush:latest .
|
- docker build -t registry.v0l.io/notepush:latest .
|
||||||
- docker push registry.v0l.io/notepush:latest
|
- docker push registry.v0l.io/notepush:latest
|
||||||
|
@ -3,7 +3,7 @@ ARG IMAGE=rust:bookworm
|
|||||||
FROM $IMAGE AS build
|
FROM $IMAGE AS build
|
||||||
WORKDIR /app/src
|
WORKDIR /app/src
|
||||||
RUN apt update && apt -y install git libssl-dev
|
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
|
RUN cargo install --path notepush --root /app/build
|
||||||
|
|
||||||
FROM $IMAGE AS runner
|
FROM $IMAGE AS runner
|
||||||
|
Reference in New Issue
Block a user