From dddedfa45cc38078caa3dc4fc5b20e8412e02e11 Mon Sep 17 00:00:00 2001 From: Polianin Nikita Date: Wed, 10 Dec 2025 00:50:42 +0300 Subject: [PATCH] build: fix env docker --- .github/workflows/deploy.yml | 10 +++++----- Dockerfile | 4 ---- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index a2b0ed3..82751a1 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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}" diff --git a/Dockerfile b/Dockerfile index c6ed562..267e297 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 \