Add dind
Some checks failed
continuous-integration/drone Build is failing

This commit is contained in:
Kasper Juul Hermansen 2022-08-12 01:48:02 +02:00
parent d547e9d763
commit 61bffbe6b0
Signed by: kjuulh
GPG Key ID: 0F95C140730F2F23
2 changed files with 21 additions and 17 deletions

View File

@ -3,20 +3,21 @@ name: default
type: docker
steps:
# - name: server
# image: plugins/docker
# environment:
# DOCKER_BUILDKIT: 1
# settings:
# username: kasperhermansen
# password:
# from_secret:
# docker_secret
# repo: kasperhermansen/cuddle
# tags: latest
# context: .
# dockerfile: templates/build_cuddle_image.Dockerfile
# cache_from: kasperhermansen/cuddle:latest
- name: server
image: plugins/docker
environment:
DOCKER_BUILDKIT: 1
settings:
username: kasperhermansen
password:
from_secret:
docker_secret
repo: kasperhermansen/cuddle
tags: latest
context: .
dockerfile: templates/build_cuddle_image.Dockerfile
cache_from: kasperhermansen/cuddle:latest
- name: load_secret
image: debian:buster-slim
volumes:
@ -43,7 +44,6 @@ steps:
DOCKER_PASSWORD:
from_secret: docker_password
commands:
- set -e
- cuddle_cli x build_cuddle_image
depends_on:
- "load_secret"

View File

@ -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
@ -7,4 +7,8 @@ RUN apt-get install -y -q build-essential curl git pkg-config
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