diff --git a/.drone.yml b/.drone.yml index 965459c..ee435e6 100644 --- a/.drone.yml +++ b/.drone.yml @@ -7,14 +7,21 @@ trigger: - push steps: - - name: docker-build - image: plugins/docker - environment: - NGINX_KEY: - from_secret: NGINX_KEY - + - name: key-setup + image: ubuntu:latest + volumes: + - name: wd + path: . commands: - echo "$NGINX_KEY" > id_rsa + + - name: docker-build + image: plugins/docker + volumes: + - name: wd + path: . + depends_on: + - key-setup settings: dockerfile: Dockerfile context: .