fixing drone

pr
Override-6 2 years ago
parent 97c1ad3c82
commit 0f88543310

@ -10,16 +10,17 @@ steps:
- name: key-setup - name: key-setup
image: ubuntu:latest image: ubuntu:latest
volumes: volumes:
- name: wd - name: key
path: . path: key
commands: commands:
- echo "$NGINX_KEY" > id_rsa - mkdir key
- echo "$NGINX_KEY" > key/id_rsa
- name: docker-build - name: docker-build
image: plugins/docker image: plugins/docker
volumes: volumes:
- name: wd - name: key
path: . path: key
depends_on: depends_on:
- key-setup - key-setup
settings: settings:

@ -7,7 +7,7 @@ WORKDIR /usr/local
RUN npm install docusaurus RUN npm install docusaurus
RUN mkdir /root/.ssh RUN mkdir /root/.ssh
COPY ./id_rsa /root/.ssh/ COPY key/id_rsa /root/.ssh/
RUN chmod 700 /root/.ssh && chmod 600 /root/.ssh/* RUN chmod 700 /root/.ssh && chmod 600 /root/.ssh/*
COPY entrypoint.sh / COPY entrypoint.sh /

Loading…
Cancel
Save