34
.gitea/workflows/deploy.yml
Normal file
34
.gitea/workflows/deploy.yml
Normal 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
4
.gitignore
vendored
@ -130,3 +130,7 @@ dist
|
||||
.yarn/install-state.gz
|
||||
.pnp.*
|
||||
|
||||
# IDEs
|
||||
.idea
|
||||
*.suo
|
||||
.vscode
|
9
Dockerfile
Normal file
9
Dockerfile
Normal 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
1
docs/index.md
Normal file
@ -0,0 +1 @@
|
||||
# Startseite
|
5
mkdocs.yml
Normal file
5
mkdocs.yml
Normal file
@ -0,0 +1,5 @@
|
||||
site_name: Planspiele
|
||||
theme:
|
||||
name: material
|
||||
extra:
|
||||
generator: false
|
Reference in New Issue
Block a user