Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Remove redundant LBHPACKAGESTOKEN"
Browse files Browse the repository at this point in the history
This reverts commit 5ac9fbe.
spikeheap committed Oct 1, 2024
1 parent 015823b commit ba15add
Showing 4 changed files with 18 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions Hackney.Shared.HousingSearch.Tests/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -6,3 +6,5 @@ services:
build:
context: .
dockerfile: Hackney.Shared.HousingSearch.Tests/Dockerfile
args:
- LBHPACKAGESTOKEN=${LBHPACKAGESTOKEN}
7 changes: 7 additions & 0 deletions nuget.config
Original file line number Diff line number Diff line change
@@ -6,4 +6,11 @@
<add key="github-hackney" value="https://nuget.pkg.github.com/LBHackney-IT/index.json" />
</packageSources>

<packageSourceCredentials>
<github-hackney>
<add key="Username" value="PublicToken" />
<add key="ClearTextPassword" value="%LBHPACKAGESTOKEN%" />
</github-hackney>
</packageSourceCredentials>

</configuration>

0 comments on commit ba15add

Please sign in to comment.