@ -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
depends_on:
- key-setup
settings:
dockerfile: Dockerfile
context: .
@ -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 /