Private Repositories#
- Give the deploy key access to the git repositories in your Bitbucket/GitHub.
- Add
ARG LAGOON_SSH_PRIVATE_KEY
to yourdockerfile
(before the step of the build process that needs the SSH key). - add
RUN /lagoon/entrypoints/05-ssh-key.sh
to yourdockerfile
(before the step of the build process that needs the SSH key).
RUN /lagoon/entrypoints/05-ssh-key.sh && composer install && rm /home/.ssh/key