Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

theme o' docker images #201

Merged
merged 3 commits into from
Jun 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 25 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,20 @@ jobs:
draft: false
prerelease: false
docker:
strategy:
matrix:
theme:
- 'crimson'
- 'gold-nouveau'
- 'hamlindigo'
- 'modern'
- 'rocket'
- 'sahara'
- 'seafoam'
- 'skeleton'
- 'vintage'
- 'wintry'
- ''
needs:
- build
- GenTag
Expand All @@ -92,6 +106,14 @@ jobs:
with:
name: build-files-${{ needs.GenTag.outputs.value }}
path: ./
- name: Replace theme in the HTML files to generate differant theme builds
if: ${{ matrix.theme != '' }}
uses: richardrigutins/replace-in-files@v2
with:
files: '**/*.html'
search-text: data-theme='skeleton'
replacement-text: data-theme='${{ matrix.theme }}'
encoding: utf8
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
Expand Down Expand Up @@ -119,7 +141,7 @@ jobs:
build-args: version=${{ needs.GenTag.outputs.value }}
push: true
tags: |
ghcr.io/${{ steps.string.outputs.lowercase }}:latest,
ghcr.io/${{ steps.string.outputs.lowercase }}:${{ needs.GenTag.outputs.value }},
${{ steps.string.outputs.lowercase }}:latest,
ghcr.io/${{ steps.string.outputs.lowercase }}:latest${{ matrix.theme }},
ghcr.io/${{ steps.string.outputs.lowercase }}:${{ needs.GenTag.outputs.value }}${{ matrix.theme }},
${{ steps.string.outputs.lowercase }}:latest${{ matrix.theme }},
${{ steps.string.outputs.lowercase }}:${{ needs.GenTag.outputs.value }},
8 changes: 4 additions & 4 deletions src/routes/(app)/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,16 @@
</AppBar>
</svelte:fragment>
<svelte:fragment slot="sidebarLeft">
<MediaQuery query="(min-width: {screens.md})" let:matches>
{#if matches}
<MediaQuery query="(max-width: {screens.md})" let:matches>
{#if !matches}
<MainAppRail />
{/if}
</MediaQuery>
</svelte:fragment>
<slot />
<svelte:fragment slot="footer">
<MediaQuery query="(min-width: {screens.md})" let:matches>
{#if !matches}
<MediaQuery query="(max-width: {screens.md})" let:matches>
{#if matches}
<MobileAppNavigation />
{/if}
</MediaQuery>
Expand Down
2 changes: 1 addition & 1 deletion versionToServerVersionMapping.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
},
{
"tag": "v1.1.0",
"uiVersion": "r994",
"uiVersion": "r1001",
"serverVersion": "r1502",
"comment": "the server version is between 1.0.0 and 1.1.0 release",
"comment2": "because its the preview version that implemented the breaking changes"
Expand Down