diff --git a/.gitea/.DS_Store b/.gitea/.DS_Store new file mode 100644 index 0000000..673bbbb Binary files /dev/null and b/.gitea/.DS_Store differ diff --git a/.gitea/workflows/docker-build.yml b/.gitea/workflows/docker-build.yml new file mode 100644 index 0000000..bea009a --- /dev/null +++ b/.gitea/workflows/docker-build.yml @@ -0,0 +1,27 @@ +# .gitea/workflows/docker-build.yml +name: Build and Push Docker Container +on: + push: + branches: + - "main" + +jobs: + build-and-push: + runs-on: + - ubuntu-22.04 + steps: + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + registry: g.eliaskohout.de + username: ${{ secrets.USERNAME }} + password: ${{ secrets.ACCESS_TOKEN }} + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Build and push + uses: docker/build-push-action@v6 + with: + push: true + tags: "g.eliaskohout.de/eliaskohout/personal-website:${{gitea.sha}},g.eliaskohout.de/eliaskohout/personal-website:latest" diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..b0f3a54 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +FROM alpine:latest + +WORKDIR /www +COPY www /www +RUN apk add --no-cache busybox-extras +EXPOSE 80 +CMD ["httpd", "-f", "-p", "80", "-h", "/www"] diff --git a/index.html b/www/index.html similarity index 100% rename from index.html rename to www/index.html