From 0f885433109bbdae08694bf4648c0b693c00c016 Mon Sep 17 00:00:00 2001 From: Override-6 Date: Sat, 7 Jan 2023 21:51:22 +0100 Subject: [PATCH] fixing drone --- .drone.yml | 11 ++++++----- Dockerfile | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.drone.yml b/.drone.yml index ee435e6..cef6473 100644 --- a/.drone.yml +++ b/.drone.yml @@ -10,16 +10,17 @@ steps: - name: key-setup image: ubuntu:latest volumes: - - name: wd - path: . + - name: key + path: key commands: - - echo "$NGINX_KEY" > id_rsa + - mkdir key + - echo "$NGINX_KEY" > key/id_rsa - name: docker-build image: plugins/docker volumes: - - name: wd - path: . + - name: key + path: key depends_on: - key-setup settings: diff --git a/Dockerfile b/Dockerfile index 06b8359..99a0dff 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,7 @@ WORKDIR /usr/local RUN npm install docusaurus RUN mkdir /root/.ssh -COPY ./id_rsa /root/.ssh/ +COPY key/id_rsa /root/.ssh/ RUN chmod 700 /root/.ssh && chmod 600 /root/.ssh/* COPY entrypoint.sh /