add load_secret
Some checks failed
continuous-integration/drone Build is failing

This commit is contained in:
Kasper Juul Hermansen 2022-08-12 01:37:47 +02:00
parent 17f2b0c6d5
commit e818d5841e
Signed by: kjuulh
GPG Key ID: 0F95C140730F2F23

View File

@ -17,12 +17,18 @@ steps:
# context: .
# dockerfile: templates/build_cuddle_image.Dockerfile
# cache_from: kasperhermansen/cuddle:latest
- name: load_secret
image: debian:buster-slim
environment:
SSH_KEY:
from_secret: gitea_id_ed25519
commands:
- mkdir -p $HOME/.ssh/
- echo "$SSH_KEY" > $HOME/.ssh/id_ed25519
- name: build
image: kasperhermansen/cuddle:latest
settings:
id_rsa:
from_secret: gitea_id_ed25519
environment:
DOCKER_BUILDKIT: 1
DOCKER_USERNAME:
@ -30,8 +36,9 @@ steps:
DOCKER_PASSWORD:
from_secret: docker_password
commands:
- ls "$HOME/.ssh/"
- cuddle_cli x build_cuddle_image
depends_on:
- "load_secret"
- name: send telegram notification
image: appleboy/drone-telegram