diff --git a/.drone.yml b/.drone.yml index c4fad31..6382bc9 100644 --- a/.drone.yml +++ b/.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