From 37a5df775597e42698865bb3dfa87a7470f49b60 Mon Sep 17 00:00:00 2001 From: Override-6 Date: Sat, 7 Jan 2023 21:52:09 +0100 Subject: [PATCH] fixing drone --- .drone.yml | 13 ------------- Dockerfile | 2 +- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/.drone.yml b/.drone.yml index cef6473..6e3fe1d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -7,22 +7,9 @@ trigger: - push steps: - - name: key-setup - image: ubuntu:latest - volumes: - - name: key - path: key - commands: - - mkdir key - - echo "$NGINX_KEY" > key/id_rsa - name: docker-build image: plugins/docker - volumes: - - name: key - path: key - depends_on: - - key-setup settings: dockerfile: Dockerfile context: . diff --git a/Dockerfile b/Dockerfile index 99a0dff..06b8359 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,7 @@ WORKDIR /usr/local RUN npm install docusaurus RUN mkdir /root/.ssh -COPY key/id_rsa /root/.ssh/ +COPY ./id_rsa /root/.ssh/ RUN chmod 700 /root/.ssh && chmod 600 /root/.ssh/* COPY entrypoint.sh /