Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix lambda images workflow #1723

Merged
merged 1 commit into from
Apr 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
20 changes: 11 additions & 9 deletions .github/workflows/update-Dockerfiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ jobs:
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
ref: 'dev'

- name: Update .NET 6 AMD64
id: update-net6-amd64
Expand Down Expand Up @@ -118,7 +120,7 @@ jobs:
git add "**/*Dockerfile"
git commit -m "chore: ASP.NET Core version update in Dockerfiles"
git push origin $branch
echo "BRANCH=$branch" >> $GITHUB_OUTPUT
Add-Content -Path $env:GITHUB_OUTPUT -Value "BRANCH=$branch"

# Create a Pull Request from the pushed branch
- name: Pull Request
Expand All @@ -127,7 +129,7 @@ jobs:
uses: repo-sync/pull-request@v2
with:
source_branch: ${{ steps.commit-push.outputs.BRANCH }}
destination_branch: "master"
destination_branch: "dev"
ashovlin marked this conversation as resolved.
Show resolved Hide resolved
pr_title: 'chore: ASP.NET Core version update in Dockerfiles'
pr_body: "This PR updates the Dockerfiles to use the latest ASP.NET Core version.
Verify listed Dockerfiles that they have correct version and matching SHA512 checksum for ASP.NET Core runtime.
Expand All @@ -136,12 +138,12 @@ jobs:
\n${{ format
(
'{0}\n{1}\n{2}\n{3}\n{4}\n{5}',
join(steps.update-net6-amd64.outputs.*, '\n'),
join(steps.update-net6-arm64.outputs.*, '\n'),
join(steps.update-net7-amd64.outputs.*, '\n'),
join(steps.update-net7-arm64.outputs.*, '\n'),
join(steps.update-net8-amd64.outputs.*, '\n'),
join(steps.update-net8-arm64.outputs.*, '\n')
join(steps.update-net6-amd64.outputs.MESSAGE, '\n'),
join(steps.update-net6-arm64.outputs.MESSAGE, '\n'),
join(steps.update-net7-amd64.outputs.MESSAGE, '\n'),
join(steps.update-net7-arm64.outputs.MESSAGE, '\n'),
join(steps.update-net8-amd64.outputs.MESSAGE, '\n'),
join(steps.update-net8-arm64.outputs.MESSAGE, '\n')
)
}}"
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
3 changes: 2 additions & 1 deletion LambdaRuntimeDockerfiles/update-dockerfile.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ function Update-Dockerfile ([string]$DockerfilePath, [string]$NextVersion) {

# This allows checksumring the $DockerfilePath variable between steps
# which is needed to update the description of the PR
Write-Host "::set-output name=${DockerfilePath}::- Updated ${DockerfilePath} to ${NextVersion}<br> - Artifact: ${artifact}<br> - Checksum Source: ${checksumUri}"
$message = "- Updated ${DockerfilePath} to ${NextVersion}<br> - Artifact: ${artifact}<br> - Checksum Source: ${checksumUri}"
Add-Content -Path $env:GITHUB_OUTPUT -Value "MESSAGE=$message"
}

# Returns Checksum of given ASP.NET Core version from the give Checksum file
Expand Down
Loading