Skip to content

Commit

Permalink
Merge pull request #1 from TeamGalena/main
Browse files Browse the repository at this point in the history
  • Loading branch information
PssbleTrngle authored Sep 22, 2024
2 parents 69cc19b + 011b645 commit 0cb3ff7
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ name: Build Container
on:
push:
branches: [release]
workflow_dispatch:

env:
REGISTRY: ghcr.io
Expand Down Expand Up @@ -42,3 +41,6 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
repo_url=https://github.com/${{ env.GITHUB_REPO }}
site_url=${{ secrets.SITE_URL }}
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
FROM squidfunk/mkdocs-material:latest AS builder

ENV CI=true

# install dependencies
COPY requirements.txt .
RUN pip install -r requirements.txt

# build the project
ARG repo_url
ENV REPO_URL=repo_url

ARG site_url
ENV SITE_URL=site_url

COPY docs docs
COPY mkdocs.yml .
RUN mkdocs build
Expand Down
2 changes: 1 addition & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
site_name: Galena Wiki
repo_url: https://github.com/TeamGalena/Wiki
edit_uri: edit/main/docs/
site_url: !ENV [SITE_URL, "http://localhost:8000"]
repo_url: !ENV [REPO_URL]

theme:
name: material
Expand Down

0 comments on commit 0cb3ff7

Please sign in to comment.