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 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"

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 RUN apt-get update && apt-get upgrade -y
@ -8,3 +8,7 @@ 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