diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml new file mode 100644 index 0000000..8a5bb03 --- /dev/null +++ b/.gitea/workflows/build.yaml @@ -0,0 +1,41 @@ +name: build-image + +on: + push + +jobs: + brs-api: + runs-on: ubuntu-latest + container: + image: catthehacker/ubuntu:act-latest + env: + DOCKER_ORG: bissendorf + RUNNER_TOOL_CACHE: /toolcache + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Set up Docker BuildX + uses: docker/setup-buildx-action@v3 + + - name: Login to DockerHub + uses: docker/login-action@v3 + with: + registry: git.bissendorf.co + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + + - name: Get Meta + id: meta + run: | + echo REPO_VERSION=$(git describe --tags --always | sed 's/^v//') >> $GITHUB_OUTPUT + + - name: Build and push + uses: docker/build-push-action@v6 + with: + context: "{{defaultContext}}" + file: Dockerfile + push: true + tags: | + git.bissendorf.co/${{ env.DOCKER_ORG }}/louisa/louisas-website:${{ steps.meta.outputs.REPO_VERSION }} + git.bissendorf.co/${{ env.DOCKER_ORG }}/louisa/louisas-website:latest \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e5ec724 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +FROM busybox:1.36 + +# Create a non-root user to own the files and run our server +RUN adduser -D web +USER web +WORKDIR /home/web + +# Copy the static website +COPY src/* . + +# Run BusyBox httpd +EXPOSE 8080 +ENTRYPOINT [ "busybox", "httpd", "-f", "-v" ] +CMD ["-p", "8080"] \ No newline at end of file diff --git a/LICENSE b/LICENSE index 969334b..269bb0b 100644 --- a/LICENSE +++ b/LICENSE @@ -1,18 +1,21 @@ MIT License -Copyright (c) 2025 bissendorf +Copyright (c) 2025 Airbus -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and -associated documentation files (the "Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the -following conditions: +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: -The above copyright notice and this permission notice shall be included in all copies or substantial -portions of the Software. +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT -LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO -EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE -USE OR OTHER DEALINGS IN THE SOFTWARE. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md index f011d9a..e61a771 100644 --- a/README.md +++ b/README.md @@ -1,3 +1 @@ -# louisas-website - -Eine Webseite, in der der Nutzer eine zufällige Zahl erraten muss. \ No newline at end of file +# louisas-website \ No newline at end of file diff --git a/src/index.html b/src/index.html new file mode 100644 index 0000000..18d872f --- /dev/null +++ b/src/index.html @@ -0,0 +1,81 @@ + + + +
+ +