From 39b5a3faaf526feedeaefa825b86cd4adbd14d24 Mon Sep 17 00:00:00 2001 From: Evan Reichard Date: Tue, 25 Apr 2023 20:07:21 -0400 Subject: [PATCH] Update Drone --- .drone.yml | 17 ++++++++++++----- Dockerfile | 12 ++++++++++++ 2 files changed, 24 insertions(+), 5 deletions(-) create mode 100644 Dockerfile diff --git a/.drone.yml b/.drone.yml index 6c9b53a..07c321a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,8 +3,15 @@ type: kubernetes name: default steps: - - name: greeting - image: alpine - commands: - - echo hello - - echo world + - name: docker + image: plugins/docker + settings: + registry: gitea.va.reichard.io + repo: gitea.va.reichard.io/reichard/docs + username: + from_secret: docker_username + password: + from_secret: docker_password + tags: + - latest + - ${DRONE_COMMIT} diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..8d05384 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +# Build Image +FROM squidfunk/mkdocs-material:latest as build + +# Build MkDocs +COPY . /app +WORKDIR /app +RUN pip install -U -r ./requirements.txt +RUN mkdocs build + +# Main Image - Copy Resources +FROM nginx +COPY --from=build /app/site /usr/share/nginx/html