First commit.

master
Thomas BELLEMBOIS 2 years ago
commit 793c6b0512

@ -0,0 +1,20 @@
kind: pipeline
type: docker
name: build
trigger:
event:
- push
steps:
- name: docker-build
image: plugins/docker
settings:
dockerfile: Dockerfile
context: .
registry: hub.codefirst.iut.uca.fr
repo: hub.codefirst.iut.uca.fr/thbellem/codefirst-docdeployer
username:
from_secret: SECRET_REGISTRY_USERNAME
password:
from_secret: SECRET_REGISTRY_PASSWORD

@ -0,0 +1,13 @@
FROM debian:bullseye
LABEL author="Thomas Bellembois"
RUN apt update && apt -y install sshpass rsync doxygen
RUN mkdir /root/.ssh
COPY ./id_rsa /root/.ssh/
RUN chmod 700 /root/.ssh && chmod 600 /root/.ssh/*
COPY entrypoint.sh /
RUN chmod +x /entrypoint.sh
ENTRYPOINT [ "/entrypoint.sh" ]

@ -0,0 +1,7 @@
#!/usr/bin/env bash
echo "repo name: "$DRONE_REPO_NAME
echo "repo owner: "$DRONE_REPO_OWNER
echo "Copying documentation for user $DRONE_REPO_OWNER and repository $DRONE_REPO_NAME"
rsync --rsync-path="mkdir -p /usr/share/nginx/html/$DRONE_REPO_OWNER/$DRONE_REPO_NAME/ && rsync" -e "ssh -o StrictHostKeyChecking=no" -avz /docs root@nginx:/usr/share/nginx/html/$DRONE_REPO_OWNER/$DRONE_REPO_NAME/

@ -0,0 +1,38 @@
-----BEGIN OPENSSH PRIVATE KEY-----
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAABlwAAAAdzc2gtcn
NhAAAAAwEAAQAAAYEA6rQj4YwSJKTQwZAg6eAC3V8FodUCpt1ODUlLRFiiDoiDCEVBAsj+
ntH/kAd7vfe+mWgmyFpc97GcecPkPtxzQ8/0nkSYYjnb0M5hTVQiv0xdGk2QOkUUbbaqLZ
cp9lD27uDcxW3CBEuyOIDAZiPbG424QTsNPfjWAszEcMyWoIWVa9Q8RMc6M4SuXSXGmTtz
esRLxZ+jYg0mnpTbNxaIGhdgpmnEWknT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