Base commit
Some checks failed
Build and Push Docker Image / build (push) Failing after 55s

This commit is contained in:
2025-02-16 15:45:16 +01:00
parent 2b82d3e3b2
commit 2c81a06d3e
5 changed files with 53 additions and 0 deletions

View File

@ -0,0 +1,34 @@
name: Build and Push Docker Image
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Log in to Docker Hub
uses: docker/login-action@v1
with:
registry: git.gnm.dev
username: ${{ github.actor }}
password: ${{ secrets.GT_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: git.gnm.dev/planspiel/dokumentation:latest
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}

4
.gitignore vendored
View File

@ -130,3 +130,7 @@ dist
.yarn/install-state.gz
.pnp.*
# IDEs
.idea
*.suo
.vscode

9
Dockerfile Normal file
View File

@ -0,0 +1,9 @@
FROM python:3.9-slim
WORKDIR /app
COPY . /app
RUN pip install mkdocs mkdocs-material
RUN mkdocs build
FROM nginx:alpine
COPY --from=0 /app/site /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]

1
docs/index.md Normal file
View File

@ -0,0 +1 @@
# Startseite

5
mkdocs.yml Normal file
View File

@ -0,0 +1,5 @@
site_name: Planspiele
theme:
name: material
extra:
generator: false