.gitea/workflows/development-build.yaml aktualisiert

This commit is contained in:
2025-08-22 11:33:29 +02:00
parent b4bd0e184b
commit f7e7278253

View File

@@ -23,14 +23,6 @@ jobs:
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Cache NuGet packages
uses: actions/cache@v3
with:
path: ~/.nuget/packages
key: nuget-${{ runner.os }}-${{ hashFiles('**/*.csproj') }}
restore-keys: |
nuget-${{ runner.os }}-
- name: Restore dependencies
run: dotnet restore
@@ -54,14 +46,6 @@ jobs:
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Cache Docker layers
uses: actions/cache@v3
with:
path: /tmp/.buildx-cache
key: docker-${{ github.sha }}
restore-keys: |
docker-
- name: Login to Gitea Container Registry
uses: docker/login-action@v2
with:
@@ -73,12 +57,6 @@ jobs:
run: |
docker buildx build \
--platform ${{ env.DOCKER_PLATFORMS }} \
--cache-from=type=local,src=/tmp/.buildx-cache \
--cache-to=type=local,dest=/tmp/.buildx-cache-new,mode=max \
-t ${{ env.REGISTRY_URL }}/${{ env.DOCKER_IMAGE_NAME }}:development \
-t ${{ env.REGISTRY_URL }}/${{ env.DOCKER_IMAGE_NAME }}:${{ github.sha }} \
--push .
# Move new cache
rm -rf /tmp/.buildx-cache
mv /tmp/.buildx-cache-new /tmp/.buildx-cache