build: fix env docker
Some checks failed
Winsomnia GitOps Pipeline / build-and-push (push) Successful in 1m9s
Winsomnia GitOps Pipeline / deploy (push) Failing after 6s

This commit is contained in:
2025-12-10 00:50:42 +03:00
parent 86d7001e79
commit dddedfa45c
2 changed files with 5 additions and 9 deletions

View File

@@ -36,14 +36,14 @@ jobs:
registry: ${{ secrets.WINSOMNIA_REGISTRY }}
username: ${{ secrets.WINSOMNIA_REGISTRY_USER }}
password: ${{ secrets.WINSOMNIA_REGISTRY_TOKEN }}
- name: Debug NuGet secrets
run: |
echo "SOURCE='${{ secrets.WINSOMNIA_NUGET_SOURCE }}'"
- name: Build & Push Docker Image
id: build
env:
DOCKER_BUILDKIT: 1
WINSOMNIA_NUGET_USERNAME: ${{ secrets.WINSOMNIA_NUGET_USERNAME }}
WINSOMNIA_NUGET_TOKEN: ${{ secrets.WINSOMNIA_NUGET_TOKEN }}
WINSOMNIA_NUGET_SOURCE: ${{ secrets.WINSOMNIA_NUGET_SOURCE }}
run: |
IMAGE="${{ secrets.WINSOMNIA_REGISTRY }}/winsomnia/${{ steps.envdetect.outputs.repo_slug }}:${GITHUB_REF_NAME}"

View File

@@ -14,10 +14,6 @@ FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
WORKDIR /src
COPY . .
RUN --mount=type=secret,id=nuget_source \
ls -l /run/secrets && \
echo "NUGET_SOURCE='$(cat /run/secrets/nuget_source || true)'"
RUN --mount=type=secret,id=nuget_username \
--mount=type=secret,id=nuget_token \
--mount=type=secret,id=nuget_source \