diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 46cb7f3..0c15670 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -9,6 +9,8 @@ jobs: calculate-version: name: Calculate Version runs-on: ubuntu-latest + env: + LBHPACKAGESTOKEN: ${{ secrets.LBHPACKAGESTOKEN }} outputs: version: ${{ steps.gitversion.outputs.nuGetVersionV2 }} steps: @@ -33,6 +35,8 @@ jobs: name: Check code formatting runs-on: ubuntu-latest needs: calculate-version + env: + LBHPACKAGESTOKEN: ${{ secrets.LBHPACKAGESTOKEN }} steps: - name: Checkout uses: actions/checkout@v2 @@ -45,6 +49,8 @@ jobs: name: Build & Test runs-on: ubuntu-latest needs: calculate-version + env: + LBHPACKAGESTOKEN: ${{secrets.LBHPACKAGESTOKEN }} outputs: version: ${{ needs.calculate-version.outputs.version }} steps: @@ -60,6 +66,7 @@ jobs: runs-on: ubuntu-latest needs: build-and-test env: + LBHPACKAGESTOKEN: ${{secrets.LBHPACKAGESTOKEN }} VERSION: ${{ needs.build-and-test.outputs.version }} steps: - name: Checkout diff --git a/Hackney.Shared.HousingSearch.Tests/Dockerfile b/Hackney.Shared.HousingSearch.Tests/Dockerfile index ce83dea..7750e4a 100644 --- a/Hackney.Shared.HousingSearch.Tests/Dockerfile +++ b/Hackney.Shared.HousingSearch.Tests/Dockerfile @@ -3,6 +3,8 @@ FROM mcr.microsoft.com/dotnet/sdk:6.0 # disable microsoft telematry ENV DOTNET_CLI_TELEMETRY_OPTOUT='true' +ARG LBHPACKAGESTOKEN +ENV LBHPACKAGESTOKEN=$LBHPACKAGESTOKEN WORKDIR /app # Copy csproj and restore as distinct layers diff --git a/docker-compose.yml b/docker-compose.yml index 1012c84..c1bfffc 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,3 +6,5 @@ services: build: context: . dockerfile: Hackney.Shared.HousingSearch.Tests/Dockerfile + args: + - LBHPACKAGESTOKEN=${LBHPACKAGESTOKEN} diff --git a/nuget.config b/nuget.config index 6854881..d4b9264 100644 --- a/nuget.config +++ b/nuget.config @@ -6,4 +6,11 @@ + + + + + + + \ No newline at end of file