Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
bf14c58
Support GitHub Packages as NuGet source feed
amilochau Aug 5, 2024
648f9c3
Test
amilochau Aug 5, 2024
872a071
Minor improvements
amilochau Aug 6, 2024
e58f473
Test
amilochau Aug 6, 2024
61caabc
Test
amilochau Aug 6, 2024
d46bc95
Test
amilochau Aug 6, 2024
38353e8
Test
amilochau Aug 6, 2024
4bd46e1
Test
amilochau Aug 6, 2024
da1da14
Test
amilochau Aug 6, 2024
c674e09
Test
amilochau Aug 6, 2024
5096aff
Test
amilochau Aug 6, 2024
708e4c9
Test
amilochau Aug 6, 2024
37fffdf
Fix
amilochau Aug 6, 2024
8eda462
Test
amilochau Aug 6, 2024
7585ec3
Test
amilochau Aug 6, 2024
7935c73
Test
amilochau Aug 6, 2024
bb5e293
Test
amilochau Aug 6, 2024
f0c4606
Test
amilochau Aug 6, 2024
b79a679
Test
amilochau Aug 6, 2024
8c0ad4a
Test
amilochau Aug 6, 2024
9b5fd92
Test
amilochau Aug 6, 2024
34ccd97
Test
amilochau Aug 6, 2024
918ff1a
TestTest
amilochau Aug 6, 2024
592a276
Revert "TestTest"
amilochau Aug 6, 2024
c560803
Revert "Test"
amilochau Aug 6, 2024
56f4110
Revert "Test"
amilochau Aug 6, 2024
14056c4
Revert "Test"
amilochau Aug 6, 2024
15e28f9
Revert "Test"
amilochau Aug 6, 2024
3705e32
Test
amilochau Aug 6, 2024
0094882
Back
amilochau Aug 6, 2024
dde2a4d
Test
amilochau Aug 6, 2024
9dcfe76
Test
amilochau Aug 6, 2024
9b775a7
Restore before running docker
amilochau Aug 6, 2024
e2138ce
Don't restore with Docker
amilochau Aug 6, 2024
81f5ed5
Test
amilochau Aug 6, 2024
82436cb
Build a first time without Docker
amilochau Aug 6, 2024
b742d7e
Test
amilochau Aug 6, 2024
eb5c8f4
Test
amilochau Aug 6, 2024
229b1a0
Revert "Test"
amilochau Aug 6, 2024
9dbc67e
Revert "Test"
amilochau Aug 6, 2024
d4b9fe6
Revert "Build a first time without Docker"
amilochau Aug 6, 2024
530361d
Revert "Test"
amilochau Aug 6, 2024
154f6d9
Revert "Don't restore with Docker"
amilochau Aug 6, 2024
f769c6f
Revert "Restore before running docker"
amilochau Aug 6, 2024
b486f8a
Revert "Test"
amilochau Aug 6, 2024
8ac2171
Revert "Test"
amilochau Aug 6, 2024
615a851
Test
amilochau Aug 6, 2024
5fe1098
Test
amilochau Aug 6, 2024
8cc9852
Test
amilochau Aug 6, 2024
8a92c9c
Test
amilochau Aug 6, 2024
99f35e0
Test
amilochau Aug 6, 2024
3f81d95
Test
amilochau Aug 6, 2024
3be26be
Test
amilochau Aug 6, 2024
ba41bb1
Comment unnecessary commands
amilochau Aug 6, 2024
dc43be3
Minor improvements
amilochau Aug 6, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ jobs:
name: Create Release
runs-on: ubuntu-latest
environment: RELEASE
env:
GH_TOKEN: ${{ github.token }}
permissions:
contents: write
steps:
Expand Down
3 changes: 3 additions & 0 deletions build/lambda-functions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ jobs:
build:
name: Build
runs-on: ubuntu-latest
permissions:
contents: read
packages: read
steps:
- uses: actions/checkout@v4
- name: Build AWS Lambda functions
Expand Down
3 changes: 3 additions & 0 deletions build/lambda-functions/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ inputs:
runs:
using: composite
steps:
- name: Add GitHub Packages as NuGet feed
shell: pwsh
run: dotnet nuget add source --username ${{ github.repository_owner }} --password ${{ github.token }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json"
- name: Build AWS Lambda functions with script
shell: pwsh
run: ${{ github.action_path }}/build-lambda-functions.ps1 `
Expand Down
12 changes: 7 additions & 5 deletions build/lambda-functions/build-lambda-functions.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,15 @@ Write-Output "Verbosity is: $verbosity"
Write-Output '=========='

$sw = [Diagnostics.Stopwatch]::StartNew()
$image = "public.ecr.aws/sam/build-dotnet8:latest-x86_64"
$dir = (Get-Location).Path
#$image = "public.ecr.aws/sam/build-dotnet8:latest-x86_64" @todo Clean that
#$solutionDir = [System.IO.Path]::GetDirectoryName($solutionPath)
#$dir = $solutionDir # (Get-Location).Path

Write-Output "Pull Docker image, used to build functions"
docker pull $image -q
#Write-Output "Pull Docker image, used to build functions"
#docker pull $image -q

docker run --rm -v "$($dir):/src" -w /src $image dotnet publish "$solutionPath" -c Release -r linux-x64 --sc true -p:BuildSource=AwsCmd
#docker run --rm -v "$($dir):/src" -w /src $image ;
dotnet publish $solutionPath -c Release -r linux-x64 --sc true -p:BuildSource=AwsCmd
if (!$?) {
Write-Output "::error title=Build failed::Build failed"
throw 1
Expand Down
3 changes: 3 additions & 0 deletions build/netcore/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ jobs:
build:
name: Build
runs-on: ubuntu-latest
permissions:
contents: read # Required to checkout repository
packages: read # Required to fetch NuGet packages
steps:
- uses: actions/checkout@v4
- name: Build and test projects
Expand Down
6 changes: 6 additions & 0 deletions build/netcore/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ runs:
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ inputs.dotnetVersion }}
- name: Add GitHub Packages as NuGet feed
shell: pwsh
run: dotnet nuget add source --username ${{ github.repository_owner }} --password ${{ github.token }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json"
env:
DOTNET_NOLOGO: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
- name: Restore packages
shell: pwsh
run: dotnet restore ${{ inputs.projectsToBuild }} --verbosity ${{ inputs.VERBOSITY }}
Expand Down
4 changes: 1 addition & 3 deletions clean/artifacts/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,4 @@ runs:
shell: pwsh
run: ${{ github.action_path }}/clean-artifacts.ps1 `
-runId ${{ inputs.runId }} `
-verbosity ${{ inputs.verbosity }}
env:
GH_TOKEN: ${{ github.token }}
-verbosity ${{ inputs.verbosity }}
3 changes: 2 additions & 1 deletion release/nuget/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ jobs:
env:
GH_TOKEN: ${{ github.token }}
permissions:
contents: write
contents: write # Required to checkout repository and create release
packages: write # Required to fetch and push NuGet packages
steps:
- uses: actions/checkout@v4
- name: Deploy libraries
Expand Down
10 changes: 7 additions & 3 deletions release/nuget/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ runs:
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ inputs.dotnetVersion }}
- name: Add GitHub Packages as NuGet feed
shell: pwsh
run: dotnet nuget add source --username ${{ github.repository_owner }} --password ${{ github.token }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json"
env:
DOTNET_NOLOGO: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
- name: Restore packages
shell: pwsh
run: dotnet restore ${{ inputs.projectsToBuild }} --verbosity ${{ inputs.VERBOSITY }}
Expand Down Expand Up @@ -85,9 +91,7 @@ runs:
- name: Publish packages to GitHub Packages
if: inputs.destination == 'githubpackages'
shell: pwsh
run: |
dotnet nuget add source --username ${{ github.repository_owner }} --password ${{ env.GH_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json"
dotnet nuget push ./build/*.nupkg --source github
run: dotnet nuget push ./build/*.nupkg --source github
env:
DOTNET_NOLOGO: true
DOTNET_CLI_TELEMETRY_OPTOUT: true