Skip to content

Commit

Permalink
Add version
Browse files Browse the repository at this point in the history
  • Loading branch information
ajami1331 committed Jan 11, 2025
1 parent 6f6fd9f commit 3242491
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,6 @@ RUN chmod +x /root/sandbox.sh

EXPOSE 5050/tcp

ENV JUDGER_VERSION=$(git describe --tags --always --dirty)

ENTRYPOINT [ "/root/entrypoint.sh" ]
2 changes: 1 addition & 1 deletion sojj/Services/JudgeService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public async Task<bool> CheckinAsync()
var formdata = new MultipartFormDataContent{
{new StringContent(Environment.MachineName), "name"},
{new StringContent(this.configuration.GetValue<int>("NumberOfWorkers", Environment.ProcessorCount).ToString()), "concurrency"},
{new StringContent(this.configuration.GetValue<string>("Version", "default")), "version"},
{new StringContent(this.configuration.GetValue<string>("JUDGER_VERSION", "default")), "version"},
};
var response = await httpClient.PostAsync("/judge/checkin", formdata);
if (response.IsSuccessStatusCode)
Expand Down

0 comments on commit 3242491

Please sign in to comment.