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 /