From 6cb251932fb3a31d528f10502f39c833b4064dda Mon Sep 17 00:00:00 2001 From: Phil Date: Sat, 6 Apr 2024 21:42:51 +0200 Subject: [PATCH] Added Docker --- .dockerignore | 4 ++++ .woodpecker.yml | 14 ++++++++++++++ Dockerfile | 4 ++++ 3 files changed, 22 insertions(+) create mode 100644 .dockerignore create mode 100644 .woodpecker.yml create mode 100644 Dockerfile diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..78d3b3b --- /dev/null +++ b/.dockerignore @@ -0,0 +1,4 @@ +LICENSE +README.md +DOCKERFILE +docker-compose.yml \ No newline at end of file diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..89c19e0 --- /dev/null +++ b/.woodpecker.yml @@ -0,0 +1,14 @@ +steps: + - publish: + image: woodpeckerci/plugin-docker-buildx + settings: + platforms: linux/amd64 + repo: git.hackmi.ch/hackmi.ch/home + registry: git.hackmi.ch + tags: latest + username: + from_secret: reg-user + password: + from_secret: reg-pass + when: + event: push \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..6588213 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,4 @@ +FROM nginx:alpine +RUN rm -rf /usr/share/nginx/html +RUN mkdir -p /usr/share/nginx/html +COPY . /usr/share/nginx/html/ \ No newline at end of file