From 3ea6c4c5b9702c21a2d1314f9100fc20d441e3cf Mon Sep 17 00:00:00 2001 From: Constantin Simonis Date: Thu, 16 Jan 2025 16:55:58 +0100 Subject: [PATCH] dockerize maybe --- .gitea/workflows/build.yaml | 18 ++++++++++++++++++ Dockerfile | 5 +++++ {.well-known => src/.well-known}/discord | 0 index.html => src/index.html | 0 robots.txt => src/robots.txt | 0 5 files changed, 23 insertions(+) create mode 100644 .gitea/workflows/build.yaml create mode 100644 Dockerfile rename {.well-known => src/.well-known}/discord (100%) rename index.html => src/index.html (100%) rename robots.txt => src/robots.txt (100%) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml new file mode 100644 index 0000000..94307cd --- /dev/null +++ b/.gitea/workflows/build.yaml @@ -0,0 +1,18 @@ +name: build +on: push +jobs: + build: + runs-on: remote + steps: + - uses: actions/checkout@v4 + - uses: docker/login-action@v1 + with: + registry: git.simonis.lol + username: ${{ vars.DOCKER_USER }} + password: ${{ vars.DOCKER_PW }} + + - name: build + run: docker build -t git.simonis.lol/sites/simonis.lol:latest . + + - name: push + run: docker push git.simonis.lol/sites/simonis.lol:latest diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..7336c9a --- /dev/null +++ b/Dockerfile @@ -0,0 +1,5 @@ +FROM nginx:latest + +COPY src /usr/share/nginx/html + +CMD ["nginx", "-g", "daemon off;"] diff --git a/.well-known/discord b/src/.well-known/discord similarity index 100% rename from .well-known/discord rename to src/.well-known/discord diff --git a/index.html b/src/index.html similarity index 100% rename from index.html rename to src/index.html diff --git a/robots.txt b/src/robots.txt similarity index 100% rename from robots.txt rename to src/robots.txt