This commit is contained in:
parent
d547e9d763
commit
61bffbe6b0
30
.drone.yml
30
.drone.yml
@ -3,20 +3,21 @@ name: default
|
|||||||
type: docker
|
type: docker
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
# - name: server
|
- name: server
|
||||||
# image: plugins/docker
|
image: plugins/docker
|
||||||
# environment:
|
environment:
|
||||||
# DOCKER_BUILDKIT: 1
|
DOCKER_BUILDKIT: 1
|
||||||
# settings:
|
settings:
|
||||||
# username: kasperhermansen
|
username: kasperhermansen
|
||||||
# password:
|
password:
|
||||||
# from_secret:
|
from_secret:
|
||||||
# docker_secret
|
docker_secret
|
||||||
# repo: kasperhermansen/cuddle
|
repo: kasperhermansen/cuddle
|
||||||
# tags: latest
|
tags: latest
|
||||||
# context: .
|
context: .
|
||||||
# dockerfile: templates/build_cuddle_image.Dockerfile
|
dockerfile: templates/build_cuddle_image.Dockerfile
|
||||||
# cache_from: kasperhermansen/cuddle:latest
|
cache_from: kasperhermansen/cuddle:latest
|
||||||
|
|
||||||
- name: load_secret
|
- name: load_secret
|
||||||
image: debian:buster-slim
|
image: debian:buster-slim
|
||||||
volumes:
|
volumes:
|
||||||
@ -43,7 +44,6 @@ steps:
|
|||||||
DOCKER_PASSWORD:
|
DOCKER_PASSWORD:
|
||||||
from_secret: docker_password
|
from_secret: docker_password
|
||||||
commands:
|
commands:
|
||||||
- set -e
|
|
||||||
- cuddle_cli x build_cuddle_image
|
- cuddle_cli x build_cuddle_image
|
||||||
depends_on:
|
depends_on:
|
||||||
- "load_secret"
|
- "load_secret"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
FROM rust:1.62.1-slim-bullseye
|
FROM rust:1.62.1-slim-bullseye as base
|
||||||
|
|
||||||
RUN apt-get update && apt-get upgrade -y
|
RUN apt-get update && apt-get upgrade -y
|
||||||
|
|
||||||
@ -7,4 +7,8 @@ RUN apt-get install -y -q build-essential curl git pkg-config
|
|||||||
|
|
||||||
WORKDIR /app/cuddle/
|
WORKDIR /app/cuddle/
|
||||||
|
|
||||||
RUN cargo install --git https://git.front.kjuulh.io/kjuulh/cuddle.git cuddle_cli
|
RUN cargo install --git https://git.front.kjuulh.io/kjuulh/cuddle.git cuddle_cli
|
||||||
|
|
||||||
|
FROM docker:stable-dind
|
||||||
|
|
||||||
|
COPY --from=base /usr/bin/cuddle_cli /usr/bin/cuddle_cli
|
||||||
|
Loading…
Reference in New Issue
Block a user