This commit is contained in:
parent
17f2b0c6d5
commit
e818d5841e
15
.drone.yml
15
.drone.yml
@ -17,12 +17,18 @@ steps:
|
|||||||
# 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
|
||||||
|
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
|
- name: build
|
||||||
image: kasperhermansen/cuddle:latest
|
image: kasperhermansen/cuddle:latest
|
||||||
settings:
|
|
||||||
id_rsa:
|
|
||||||
from_secret: gitea_id_ed25519
|
|
||||||
environment:
|
environment:
|
||||||
DOCKER_BUILDKIT: 1
|
DOCKER_BUILDKIT: 1
|
||||||
DOCKER_USERNAME:
|
DOCKER_USERNAME:
|
||||||
@ -30,8 +36,9 @@ steps:
|
|||||||
DOCKER_PASSWORD:
|
DOCKER_PASSWORD:
|
||||||
from_secret: docker_password
|
from_secret: docker_password
|
||||||
commands:
|
commands:
|
||||||
- ls "$HOME/.ssh/"
|
|
||||||
- cuddle_cli x build_cuddle_image
|
- cuddle_cli x build_cuddle_image
|
||||||
|
depends_on:
|
||||||
|
- "load_secret"
|
||||||
|
|
||||||
- name: send telegram notification
|
- name: send telegram notification
|
||||||
image: appleboy/drone-telegram
|
image: appleboy/drone-telegram
|
||||||
|
Loading…
Reference in New Issue
Block a user