Skip to content

Commit 0f5f2bf

Browse files
v9.0.307 (#2)
* Build the version 9.0.307 * Automate Github releases. * Remove tag "9.0".
1 parent 6a3eb0f commit 0f5f2bf

File tree

3 files changed

+37
-22
lines changed

3 files changed

+37
-22
lines changed

.github/workflows/github-actions-ci.yaml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,8 @@ jobs:
1414
checks: write
1515
pull-requests: write
1616

17-
strategy:
18-
fail-fast: false
19-
matrix:
20-
dotnet_sdk_version:
21-
- "9.0"
22-
- "9.0.306"
23-
2417
env:
18+
DOTNET_SDK_VERSION: "9.0.307"
2519
IMAGE_NAME: dotnet-sdk-extended
2620

2721
steps:
@@ -39,13 +33,13 @@ jobs:
3933
push: false
4034
load: true
4135
platforms: linux/amd64
42-
tags: ${{ env.IMAGE_NAME }}:${{ matrix.dotnet_sdk_version }}-ci
36+
tags: ${{ env.IMAGE_NAME }}:${{ env.DOTNET_SDK_VERSION }}-ci
4337
build-args: |
44-
DOTNET_SDK_VERSION=${{ matrix.dotnet_sdk_version }}
38+
DOTNET_SDK_VERSION=${{ env.DOTNET_SDK_VERSION }}
4539
4640
- name: Print versions of the tools
4741
run: |
48-
docker run --rm "${{ env.IMAGE_NAME }}:${{ matrix.dotnet_sdk_version }}-ci" /bin/bash -lc '
42+
docker run --rm "${{ env.IMAGE_NAME }}:${{ env.DOTNET_SDK_VERSION }}-ci" /bin/bash -lc '
4943
echo "******* Environment variables ******"
5044
echo "DOTNET_SDK_VERSION=${DOTNET_SDK_VERSION}";
5145
echo "NODE_VERSION=${NODE_VERSION}";

.github/workflows/github-actions-release.yaml

Lines changed: 32 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,19 @@
22

33
on: workflow_dispatch
44

5-
run-name: ${{ github.run_number }}
5+
env:
6+
DOTNET_SDK_VERSION: "9.0.307"
7+
8+
run-name: "v9.0.307"
69

710
jobs:
811
build:
912
runs-on: ubuntu-latest
1013

1114
permissions:
12-
contents: read
15+
contents: write
1316
packages: write
1417

15-
strategy:
16-
fail-fast: false
17-
matrix:
18-
dotnet_sdk_version:
19-
- "9.0"
20-
- "9.0.306"
21-
2218
env:
2319
IMAGE_NAME: posinformatique/dotnet-sdk-extended
2420
REGISTRY: ghcr.io
@@ -43,9 +39,34 @@ jobs:
4339
context: .
4440
file: ./Dockerfile
4541
push: true
42+
load: true
4643
platforms: linux/amd64
47-
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ matrix.dotnet_sdk_version }}
44+
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.DOTNET_SDK_VERSION }}
4845
build-args: |
49-
DOTNET_SDK_VERSION=${{ matrix.dotnet_sdk_version }}
46+
DOTNET_SDK_VERSION=${{ env.DOTNET_SDK_VERSION }}
5047
no-cache: true
5148
provenance: false
49+
50+
- name: Get tools versions from Docker
51+
id: tools_versions
52+
run: |
53+
docker run --rm "${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.DOTNET_SDK_VERSION }}" /bin/bash -lc '
54+
echo "NODE_VERSION=${NODE_VERSION}"
55+
echo "NPM_VERSION=${NPM_VERSION}"
56+
echo "SQLCMD_VERSION=${SQLCMD_VERSION}"
57+
' >> $GITHUB_OUTPUT
58+
59+
- name: Create Release
60+
uses: softprops/action-gh-release@v2
61+
with:
62+
tag_name: "v${{ env.DOTNET_SDK_VERSION }}"
63+
name: "v${{ env.DOTNET_SDK_VERSION }}"
64+
body: |
65+
Initial version of the image with the following tools:
66+
- Node.js: v${{ steps.tools_versions.outputs.NODE_VERSION }}
67+
- npm: v${{ steps.tools_versions.outputs.NPM_VERSION }}
68+
- sqlcmd: ${{ steps.tools_versions.outputs.SQLCMD_VERSION }}
69+
70+
Based on [mcr.microsoft.com/dotnet/sdk:${{ env.DOTNET_SDK_VERSION }}](https://mcr.microsoft.com/en-us/product/dotnet/sdk/about)
71+
draft: true
72+
prerelease: false

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Image registry:
1717
## Tags
1818
- Exact SDK versions:
1919
- [9.0.306](https://github.com/PosInformatique/dotnet-sdk-extended/pkgs/container/dotnet-sdk-extended/)
20-
- Moving major tag: [9.0](https://github.com/PosInformatique/dotnet-sdk-extended/pkgs/container/dotnet-sdk-extended/) (points to the latest 9.0.x, currently 9.0.306)
20+
- [9.0.307](https://github.com/PosInformatique/dotnet-sdk-extended/pkgs/container/dotnet-sdk-extended/)
2121

2222
## Tool versions
2323
- Node.js: v22.20.0 (LTS)

0 commit comments

Comments
 (0)