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

This commit is contained in:
Kasper Juul Hermansen 2022-08-13 12:21:31 +02:00
parent 8b32de2432
commit d4eacd3eef
Signed by: kjuulh
GPG Key ID: 0F95C140730F2F23
2 changed files with 29 additions and 8 deletions

View File

@ -32,18 +32,38 @@ steps:
- ls $HOME/.ssh/
- cat $HOME/.ssh/id_ed25519
# - name: build
# image: quay.io/testcontainers/dind-drone-plugin
# settings:
# build_image: kasperhermansen/cuddle:latest
# cmd: sleep 3 && cuddle_cli x build_cuddle_image
# volumes:
# - name: ssh
# path: /root/.ssh/
# - name: dockersock
# path: /var/run
# environment:
# CI_WORKSPACE: "/drone/src"
# DOCKER_BUILDKIT: 1
# DOCKER_USERNAME:
# from_secret: docker_username
# DOCKER_PASSWORD:
# from_secret: docker_password
# depends_on:
# - "load_secret"
# - "server"
- name: build
image: quay.io/testcontainers/dind-drone-plugin
settings:
build_image: kasperhermansen/cuddle:latest
cmd: sleep 3 && cuddle_cli x build_cuddle_image
image: kasperhermansen/cuddle:latest
volumes:
- name: ssh
path: /root/.ssh/
- name: dockersock
path: /var/run
commands:
- sleep 5
- cuddle x build_cuddle_image
environment:
CI_WORKSPACE: "/drone/src"
DOCKER_BUILDKIT: 1
DOCKER_USERNAME:
from_secret: docker_username

View File

@ -11,6 +11,7 @@ WORKDIR /app/cuddle/
RUN cargo install --git https://git.front.kjuulh.io/kjuulh/cuddle.git cuddle_cli
RUN export PATH="$PATH:/usr/local/cargo/bin/"
#FROM docker:stable-dind
#COPY --from=base /usr/local/cargo/bin/ /usr/local/cargo/bin/
#RUN export PATH="$PATH:/usr/local/cargo/bin/"
FROM docker:stable-dind
COPY --from=base /usr/local/cargo/bin/ /usr/local/cargo/bin/
RUN export PATH="$PATH:/usr/local/cargo/bin/"