This commit is contained in:
parent
17f2b0c6d5
commit
e818d5841e
15
.drone.yml
15
.drone.yml
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user