File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 32
32
- name : Checkout repository
33
33
uses : actions/checkout@v4
34
34
35
+ - name : Set up .NET
36
+ uses : actions/setup-dotnet@v4
37
+ with :
38
+ dotnet-version : ' 9.x'
39
+
35
40
- name : Pull the latest metadata.json
36
41
if : inputs.image_name == 'awesome-copilot'
37
42
shell : bash
81
86
git push origin main
82
87
fi
83
88
89
+ - name : Build app
90
+ if : env.BUILD_IMAGE == 'true' || inputs.force == true
91
+ shell : bash
92
+ run : |
93
+ pushd ${{ inputs.image_name }}
94
+ dotnet restore && dotnet build
95
+ popd
96
+
84
97
- name : Check if Dockerfile exists
85
98
if : env.BUILD_IMAGE == 'true' || inputs.force == true
86
99
id : check-dockerfile
@@ -126,7 +139,7 @@ jobs:
126
139
with :
127
140
platforms : linux/amd64,linux/arm64
128
141
push : true
129
- context : ${{ github.workspace }}/${{ inputs.image_name }}
142
+ context : ${{ github.workspace }}
130
143
file : ${{ github.workspace }}/Dockerfile.${{ inputs.image_name }}
131
144
tags : ' ${{ steps.meta.outputs.tags }},${{ env.REGISTRY }}/${{ env.REPOSITORY }}/${{ inputs.image_name }}:latest'
132
145
labels : ${{ steps.meta.outputs.labels }}
You can’t perform that action at this time.
0 commit comments