14 Commits

Author SHA1 Message Date
Penry 9204fed54c fix: #72 fixed that the height of the PrivateEntityCard.razor changes when don't having all dropdown menues (#74)
Build Docker Linux ARM64 / build-docker-linux-arm64 (push) Successful in 1m25s
Build Docker Linux ARM64 Release / build-docker-linux-arm64-release (push) Successful in 25s
Reviewed-on: #74
2026-06-12 20:48:42 +02:00
Penry 406d0f5652 fix: #60 fixed that the Global or Private Entity Card Title chnages height of the Card (#73)
Build Docker Linux ARM64 / build-docker-linux-arm64 (push) Successful in 2m54s
Reviewed-on: #73
2026-06-12 20:05:05 +02:00
Penry 9cd651bdfe Fixed GlobalEntity Problems and removed Season and Episode on Movie Entitys (#70)
Build Docker Linux ARM64 / build-docker-linux-arm64 (push) Successful in 1m22s
Reviewed-on: #70
Fixed Issue #63
Fixed Issue #68
Fixed Issue #69
2026-06-07 22:02:10 +02:00
Penry 96336fd637 Fixed Workflow Syntax (#67)
Build Docker Linux ARM64 / build-docker-linux-arm64 (push) Successful in 38s
Reviewed-on: #67
2026-06-07 21:21:30 +02:00
Penry e7d1b4b524 Merge pull request 'Adapted Nightly and Release Workflow' (#66) from Test-Branch into main
Build Docker Linux ARM64 / build-docker-linux-arm64 (push) Failing after 8s
Reviewed-on: #66
2026-06-07 21:16:31 +02:00
Penry a4d7269f8f Adapted Release Workflow 2026-06-07 21:15:46 +02:00
Penry c7d741d15b Adpated Workflow for Nightly Build 2026-06-07 21:14:02 +02:00
Penry 6d2a6c5925 Added fetch depth
Build Docker Linux ARM64 / build-docker-linux-arm64 (push) Failing after 8s
2026-06-07 20:41:31 +02:00
Penry 9ccb929553 Added Tags fetching
Build Docker Linux ARM64 / build-docker-linux-arm64 (push) Failing after 8s
2026-06-07 20:34:28 +02:00
Penry 5e086c0598 Fixed Syntax
Build Docker Linux ARM64 / build-docker-linux-arm64 (push) Failing after 8s
2026-06-07 20:32:46 +02:00
Penry a7c86289b3 Adpated Workflow for working only on those Branches
Build Docker Linux ARM64 / build-docker-linux-arm64 (push) Failing after 7s
2026-06-07 20:31:29 +02:00
Penry b2e851d765 Adpated Workflow for Running every Time 2026-06-07 20:30:32 +02:00
Penry 1a1d7dec7c Test 2026-06-07 20:29:44 +02:00
Penry 103da6abe8 Test Commit 2026-06-07 20:27:03 +02:00
7 changed files with 93 additions and 107 deletions
@@ -24,13 +24,6 @@ jobs:
echo "VERSION=$VERSION" >> $GITHUB_ENV
echo "REPO_LC=${GITHUB_REPOSITORY,,}" >> $GITHUB_ENV
- name: Login to own image registry
uses: docker/login-action@v3
with:
registry: gitea.penry.de
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Setup .NET10
uses: actions/setup-dotnet@v3
with:
@@ -42,8 +35,16 @@ jobs:
-t gitea.penry.de/${{ env.REPO_LC }}:${{ env.VERSION }} \
-t gitea.penry.de/${{ env.REPO_LC }}:latest \
--label "org.opencontainers.image.source=https://gitea.penry.de/${{ github.repository }}" \
--build-arg VERSION=${{ env.VERSION }} \
.
- name: Login to own image registry
uses: docker/login-action@v3
with:
registry: gitea.penry.de
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Push Images
run: |
docker push gitea.penry.de/${{ env.REPO_LC }}:${{ env.VERSION }}
+25 -50
View File
@@ -14,6 +14,8 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3
@@ -28,62 +30,35 @@ jobs:
- name: Build version
shell: bash
run: |
set -euo pipefail
git fetch --force --tags origin
git fetch --force origin main:refs/remotes/origin/main
LAST_TAG=$(git for-each-ref \
--sort=-creatordate \
--format='%(refname:strip=2)' \
refs/tags/v* \
| head -n 1)
if [[ -z "${LAST_TAG:-}" ]]; then
echo "No tag found"
exit 1
fi
LAST_COMMIT=$(git rev-list -n 1 "$LAST_TAG")
DISTANCE=$(git rev-list --count --first-parent "${LAST_COMMIT}..origin/main")
BASE_VERSION="${LAST_TAG#v}"
if [[ "$BASE_VERSION" == *-* ]]; then
VERSION="${BASE_VERSION}.${DISTANCE}"
else
VERSION="${BASE_VERSION}-nightly.${DISTANCE}"
fi
echo "LAST_TAG=$LAST_TAG" >> "$GITHUB_ENV"
echo "LAST_COMMIT=$LAST_COMMIT" >> "$GITHUB_ENV"
echo "DISTANCE=$DISTANCE" >> "$GITHUB_ENV"
echo "VERSION=$VERSION" >> "$GITHUB_ENV"
echo "Last tag: $LAST_TAG"
echo "Last tag commit: $LAST_COMMIT"
echo "Distance to origin/main: $DISTANCE"
echo "Final version: $VERSION"
LAST_TAG=$(git describe --tags --abbrev=0)
- name: Set .NET version variables
shell: bash
run: |
set -euo pipefail
SEMVER="${VERSION}"
BASE_NUMERIC=$(echo "$SEMVER" | sed -E 's/^([0-9]+\.[0-9]+\.[0-9]+).*/\1/')
BUILD_NO=$(echo "$SEMVER" | grep -oE '[0-9]+$' || echo "0")
echo "PACKAGE_VERSION=$SEMVER" >> "$GITHUB_ENV"
echo "ASSEMBLY_VERSION=${BASE_NUMERIC}.0" >> "$GITHUB_ENV"
echo "FILE_VERSION=${BASE_NUMERIC}.${BUILD_NO}" >> "$GITHUB_ENV"
echo "INFORMATIONAL_VERSION=$SEMVER" >> "$GITHUB_ENV"
if [[ -z "${LAST_TAG:-}" ]]; then
echo "No tag found"
exit 1
fi
COMMIT_COUNT=$(git rev-list $LAST_TAG..HEAD --count)
if [[ "$LAST_TAG" == *-* ]]; then
TEMP_LAST_TAG="${LAST_TAG%-*}"
VERSION="${TEMP_LAST_TAG}-nightly.${COMMIT_COUNT}"
else
VERSION="${LAST_TAG}-nightly.${COMMIT_COUNT}"
fi
echo "LAST_TAG=$LAST_TAG" >> "$GITHUB_ENV"
echo "COMMIT_COUNT=$COMMIT_COUNT" >> "$GITHUB_ENV"
echo "VERSION=$VERSION" >> "$GITHUB_ENV"
echo "Last tag: $LAST_TAG"
echo "Commit count: $COMMIT_COUNT"
echo "Final version: $VERSION"
- name: Build Linux ARM64 Docker Image
run: |
docker build \
-t gitea.penry.de/${{ env.REPO_LC }}:nightly \
--build-arg VERSION=${{ env.PACKAGE_VERSION }} \
--build-arg VERSION=${{ env.VERSION }} \
.
- name: Login to own image registry
@@ -5,7 +5,7 @@
<MudCardMedia Image="@GlobalEntity.PicturePath" Height="400" Style="object-fit: contain;"/>
</MudPaper>
<MudCardContent>
<MudText Typo="Typo.h5">@GlobalEntity.Title</MudText>
<MudText Typo="Typo.h5" Style="overflow: hidden; text-overflow: ellipsis; white-space: nowrap;">@GlobalEntity.Title</MudText>
</MudCardContent>
<MudCardActions>
<MudTooltip Text="Add to shared List">
@@ -120,6 +120,9 @@
//Picture
private IBrowserFile? _pictureFile;
private string _pictureBase64;
private string? _pictureContentType;
private string? _pictureExtension;
private class GlobalEntityFormModel
{
@@ -164,9 +167,12 @@
await using var stream = _pictureFile.OpenReadStream(5242880);
using var ms = new MemoryStream();
await stream.CopyToAsync(ms);
_pictureContentType = _pictureFile.ContentType;
_pictureExtension = Path.GetExtension(_pictureFile.Name);
var base64 = Convert.ToBase64String(ms.ToArray());
_imagePreview = $"data:{_pictureFile.ContentType};base64,{base64}";
_pictureBase64 = Convert.ToBase64String(ms.ToArray());
_imagePreview = $"data:{_pictureFile.ContentType};base64,{_pictureBase64}";
}
private void Cancel() => MudDialog.Cancel();
@@ -191,13 +197,10 @@
try
{
string fileName = $"{Guid.NewGuid()}{Path.GetExtension(_pictureFile.Name)}";
string fileName = $"{Guid.NewGuid()}{_pictureExtension}";
string picturePath = Path.Combine("wwwroot", "Pictures", fileName);
await using (var fs = File.Create(picturePath))
{
await _pictureFile.OpenReadStream(maxAllowedSize: 10_000_000).CopyToAsync(fs);
}
await File.WriteAllBytesAsync(picturePath, Convert.FromBase64String(_pictureBase64));
var entity = new GlobalEntity
{
@@ -151,7 +151,7 @@
private async Task OnNewEntity(GlobalEntity entity)
{
_globalEntities.Add(entity);
_globalEntities.Insert(0, entity);
await RefreshPage();
}
@@ -17,7 +17,7 @@
<MudStack Class="pa-3" Spacing="2">
<!--<editor-fold desc="Options">-->
<MudStack Row="true" AlignItems="AlignItems.Center" Justify="Justify.SpaceBetween">
<MudText Typo="Typo.h6">@PrivateEntity.GlobalEntity.Title</MudText>
<MudText Typo="Typo.h6" Style="overflow: hidden; text-overflow: ellipsis; white-space: nowrap">@PrivateEntity.GlobalEntity.Title</MudText>
<MudMenu Icon="@Icons.Material.Filled.MoreVert" Color="Color.Default" Dense="true">
<MudMenuItem>Edit</MudMenuItem>
<MudMenuItem OnClick="@(() => OnRemove.InvokeAsync())">Remove</MudMenuItem>
@@ -39,46 +39,51 @@
}
</MudSelect>
<!--</editor-fold>-->
<!-- @if (PrivateEntity.GlobalEntity.MediaType.Name == "Series" || PrivateEntity.GlobalEntity.MediaType.Name == "Anime") -->
<!--{-->
<!--<editor-fold desc="Dropdown-Season">-->
<MudSelect
T="int?"
Value="PrivateEntity.Season"
ValueChanged="@(newSeason => OnSeasonChange.InvokeAsync(newSeason))"
Dense="true"
Variant="Variant.Outlined"
Label=""
Class="@(PrivateEntity.GlobalEntity.MediaType.Name == "Series" ? "" : "invisible")">
@{
int? currentSeason = PrivateEntity.Season ?? 1;
int? startOffsetSeason = currentSeason > 1 ? -1 : 0;
}
@for (int? i = startOffsetSeason; i <= 5; i++)
{
int? season = currentSeason + i;
<MudSelectItem Value="@season">Staffel @season</MudSelectItem>
}
</MudSelect>
<!--</editor-fold>-->
<!--<editor-fold desc="Dropdown-Season">-->
<MudSelect
T="int?"
Value="PrivateEntity.Season"
ValueChanged="@(newSeason => OnSeasonChange.InvokeAsync(newSeason))"
Dense="true"
Variant="Variant.Outlined"
Label="">
@{
int? currentSeason = PrivateEntity.Season ?? 1;
int? startOffsetSeason = currentSeason > 1 ? -1 : 0;
}
@for (int? i = startOffsetSeason; i <= 5; i++)
{
int? season = currentSeason + i;
<MudSelectItem Value="@season">Staffel @season</MudSelectItem>
}
</MudSelect>
<!--</editor-fold>-->
<!--<editor-fold desc="Dropdown-Episode">-->
<MudSelect
T="int?"
Value="PrivateEntity.Episode"
ValueChanged="@(newEpisode => OnEpisodeChange.InvokeAsync(newEpisode))"
Dense="true"
Variant="Variant.Outlined"
Label="">
@{
int? currentEpisode = PrivateEntity.Episode ?? 1;
int? startOffsetEpisode = currentEpisode > 1 ? -1 : 0;
}
@for (int? i = startOffsetEpisode; i <= 5; i++)
{
int? episode = currentEpisode + i;
<MudSelectItem Value="@episode">Episode @episode</MudSelectItem>
}
</MudSelect>
<!--</editor-fold>-->
<!--<editor-fold desc="Dropdown-Episode">-->
<MudSelect
T="int?"
Value="PrivateEntity.Episode"
ValueChanged="@(newEpisode => OnEpisodeChange.InvokeAsync(newEpisode))"
Dense="true"
Variant="Variant.Outlined"
Label=""
Class="@(PrivateEntity.GlobalEntity.MediaType.Name == "Series" ? "" : "invisible")">
@{
int? currentEpisode = PrivateEntity.Episode ?? 1;
int? startOffsetEpisode = currentEpisode > 1 ? -1 : 0;
}
@for (int? i = startOffsetEpisode; i <= 5; i++)
{
int? episode = currentEpisode + i;
<MudSelectItem Value="@episode">Episode @episode</MudSelectItem>
}
</MudSelect>
<!--</editor-fold>-->
<!--}-->
<!--<editor-fold desc="Details Button">-->
<MudStack Row="true" Justify="Justify.FlexEnd">
+2
View File
@@ -6,3 +6,5 @@
There are two options:
- latest: Is the latest release Version
- nightly: Is the latest commit on the main branch
Test-Commit