3
3
workflow_dispatch :
4
4
inputs :
5
5
version :
6
- description : ' Version of engine to build e.g. "3.4.4", "3.5"'
6
+ description : ' Version of engine to build e.g. "3.4.4", "3.5"'
7
7
required : true
8
8
type : string
9
9
release_name :
34
34
elif [ "$MINOR_VERSION" = "4.0" ] || [ "$MINOR_VERSION" = "4.1" ] || [ "$MINOR_VERSION" = "4.2" ] || [ "$MINOR_VERSION" = "4.3" ]
35
35
then
36
36
echo "dotnet_version=mcr.microsoft.com/dotnet/sdk:6.0-jammy" >> $GITHUB_OUTPUT
37
- else
37
+ elif [ "$MINOR_VERSION" = "4.4" ]
38
+ then
38
39
echo "dotnet_version=mcr.microsoft.com/dotnet/sdk:8.0-jammy" >> $GITHUB_OUTPUT
39
- fi
40
+ else
41
+ echo "dotnet_version=mcr.microsoft.com/dotnet/sdk:9.0-noble" >> $GITHUB_OUTPUT
42
+ fi
40
43
get_tags :
41
44
name : Get Tags
42
45
runs-on : ubuntu-24.04
@@ -46,20 +49,20 @@ jobs:
46
49
steps :
47
50
- run : echo IMAGE_OWNER=$(echo ${{ github.repository_owner }} | tr '[:upper:]' '[:lower:]') >> $GITHUB_ENV
48
51
- run : echo IMAGE_TAG=$(echo ${{ github.event.inputs.release_name != 'stable' && format('.{0}', github.event.inputs.release_name) || '' }}) >> $GITHUB_ENV
49
- - name : Set tags
52
+ - name : Set tags
50
53
run : |
51
54
echo "ghcr.io/${{ env.IMAGE_OWNER }}/${{ env.IMAGE_NAME }}:${{ github.event.inputs.version }}${{ env.IMAGE_TAG }}" >> tags.txt
52
55
echo "${{ secrets.DOCKERHUB_USERNAME }}/${{ env.IMAGE_NAME }}:${{ github.event.inputs.version }}${{ env.IMAGE_TAG }}" >> tags.txt
53
- - name : Set latest tags
56
+ - name : Set latest tags
54
57
if : ${{inputs.set_latest}}
55
58
run : |
56
59
echo "ghcr.io/${{ env.IMAGE_OWNER }}/${{ env.IMAGE_NAME }}:latest" >> tags.txt
57
60
echo "${{ secrets.DOCKERHUB_USERNAME }}/${{ env.IMAGE_NAME }}:latest" >> tags.txt
58
- - name : Set Mono tags
61
+ - name : Set Mono tags
59
62
run : |
60
63
echo "ghcr.io/${{ env.IMAGE_OWNER }}/${{ env.IMAGE_NAME }}:mono-${{ github.event.inputs.version }}${{ env.IMAGE_TAG }}" >> tags_mono.txt
61
64
echo "${{ secrets.DOCKERHUB_USERNAME }}/${{ env.IMAGE_NAME }}:mono-${{ github.event.inputs.version }}${{ env.IMAGE_TAG }}" >> tags_mono.txt
62
- - name : Set Mono latest tags
65
+ - name : Set Mono latest tags
63
66
if : ${{inputs.set_latest}}
64
67
run : |
65
68
echo "ghcr.io/${{ env.IMAGE_OWNER }}/${{ env.IMAGE_NAME }}:mono-latest" >> tags_mono.txt
@@ -89,14 +92,14 @@ jobs:
89
92
echo EOF
90
93
} >> "$GITHUB_ENV"
91
94
- uses : actions/checkout@v3
92
- - name : Login to GitHub Container Registry
95
+ - name : Login to GitHub Container Registry
93
96
94
97
with :
95
98
registry : ghcr.io
96
99
username : ${{ github.repository_owner }}
97
100
password : ${{ secrets.GITHUB_TOKEN }}
98
101
- name : Login to DockerHub
99
- uses : docker/login-action@v1
102
+ uses : docker/login-action@v1
100
103
with :
101
104
username : ${{ secrets.DOCKERHUB_USERNAME }}
102
105
password : ${{ secrets.DOCKERHUB_TOKEN }}
@@ -128,14 +131,14 @@ jobs:
128
131
echo EOF
129
132
} >> "$GITHUB_ENV"
130
133
- uses : actions/checkout@v3
131
- - name : Login to GitHub Container Registry
134
+ - name : Login to GitHub Container Registry
132
135
133
136
with :
134
137
registry : ghcr.io
135
138
username : ${{ github.repository_owner }}
136
139
password : ${{ secrets.GITHUB_TOKEN }}
137
140
- name : Login to DockerHub
138
- uses : docker/login-action@v1
141
+ uses : docker/login-action@v1
139
142
with :
140
143
username : ${{ secrets.DOCKERHUB_USERNAME }}
141
144
password : ${{ secrets.DOCKERHUB_TOKEN }}
@@ -153,4 +156,3 @@ jobs:
153
156
SUBDIR=${{ github.event.inputs.release_name != 'stable' && format('/{0}', github.event.inputs.release_name) || '' }}
154
157
ZIP_GODOT_PLATFORM=${{ startsWith( github.event.inputs.version, '3.' ) && 'linux_headless_64' || 'linux_x86_64' }}
155
158
FILENAME_GODOT_PLATFORM=${{ startsWith( github.event.inputs.version, '3.' ) && 'linux_headless.64' || 'linux.x86_64' }}
156
-
0 commit comments