This commit is contained in:
parent
8b32de2432
commit
d4eacd3eef
30
.drone.yml
30
.drone.yml
@ -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
|
||||
|
@ -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/"
|
||||
|
Loading…
Reference in New Issue
Block a user