Skip to content

Commit

Permalink
fix slim?
Browse files Browse the repository at this point in the history
  • Loading branch information
Robonau authored and Robonau committed Dec 8, 2024
1 parent 7c88c2a commit 2423deb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ jobs:
ghcr.io/${{ needs.RepoName.outputs.value }}:${{ needs.GenTag.outputs.value }},
# Slim it!
- uses: kitabisa/docker-slim-action@v1
# env:
# DSLIM_HTTP_PROBE: false
env:
DSLIM_HTTP_PROBE: false
with:
target: ghcr.io/${{ needs.RepoName.outputs.value }}:latest
tag: 'slim'
Expand Down
4 changes: 2 additions & 2 deletions set-env-variable.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ sed -i "s@resolverPLACEHOLDER@$TMP2@" /etc/nginx/conf.d/default.conf
sed -i "s@PLACEHOLDER@$TMP@" /etc/nginx/conf.d/default.conf

cd /usr/share/nginx/html
${theme:="skeleton"}
find . -name '*.html' -exec sed -i -e "s/data-theme=\"skeleton\"/data-theme=\"$theme\"/g" {} \;
THEME="${theme:-skeleton}"
find . -name '*.html' -exec sed -i -e "s/data-theme=\"skeleton\"/data-theme=\"$THEME\"/g" {} \;

if [[ "${light}" = "true" || "${light}" = "True" || "${light}" = "TRUE" ]]; then
find . -name '*.html' -exec sed -i -e 's/<html lang="en" class="dark">/<html lang="en" class>/g' {} \;
Expand Down

0 comments on commit 2423deb

Please sign in to comment.