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 /