Skip to content

Commit

Permalink
πŸ”§ Fix due to pegasus.lua update
Browse files Browse the repository at this point in the history
  • Loading branch information
AMD-NICK committed Dec 22, 2024
1 parent 208d7c7 commit c1a32fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ jobs:
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
# ΠŸΡ€ΠΈ ΠΎΠ±Ρ‹Ρ‡Π½ΠΎΠΌ ΠΊΠΎΠΌΠΌΠΈΡ‚Π΅ Π΄Π΅Π»Π°Π΅Ρ‚ Ρ‚Π΅Π³ main (Π²Π΅Ρ‚ΠΊΠ°) вмСсто latest. Π›ΠΎΠ³ΠΈΡ‡Π½ΠΎ, Π½ΠΎ нСкрасиво. НиТС измСнСния
# 1. ΠŸΡ€ΠΈΠΌΠ΅Π½ΡΠ΅Ρ‚ Ρ‚Π΅Π³ "latest", Ссли Ρ‚Π΅ΠΊΡƒΡ‰ΠΈΠΉ ref являСтся Ρ‚Π΅Π³ΠΎΠΌ
# 1. ΠŸΡ€ΠΈΠΌΠ΅Π½ΡΠ΅Ρ‚ Ρ‚Π΅Π³ "latest" ΠΏΡ€ΠΈ ΠΊΠΎΠΌΠΌΠΈΡ‚Π°Ρ… ΠΈ Ρ‚Π΅Π³Π°Ρ…
# 2. ΠŸΡ€ΠΈΠΌΠ΅Π½ΡΠ΅Ρ‚ Ρ‚Π΅Π³, основанный Π½Π° ΠΈΠΌΠ΅Π½ΠΈ Π²Π΅Ρ‚ΠΊΠΈ
# 3. ΠŸΡ€ΠΈΠΌΠ΅Π½ΡΠ΅Ρ‚ Ρ‚Π΅Π³, основанный Π½Π° Ρ…ΡΡˆΠ΅ ΠΊΠΎΠΌΠΌΠΈΡ‚Π°
# 4. ΠŸΡ€ΠΈΠΌΠ΅Π½ΡΠ΅Ρ‚ Ρ‚Π΅Π³, Π°Π½Π°Π»ΠΎΠ³ΠΈΡ‡Π½Ρ‹ΠΉ Ρ‚Π΅Π³Ρƒ Ρ€Π΅Ρ„Π°, Ссли Ρ‚Π΅ΠΊΡƒΡ‰ΠΈΠΉ ref являСтся Ρ‚Π΅Π³ΠΎΠΌ
# ΠΠ»ΡŒΡ‚Π΅Ρ€Π½Π°Ρ‚ΠΈΠ²Π½Ρ‹ΠΉ Π²Π°Ρ€ΠΈΠ°Π½Ρ‚: https://github.com/strato-earth/workflow-task-template/blob/038f51662aff7e1b9fd6cf98c13e0e3ee8c65855/github/build.yml#L34-L44C17
tags: |
type=raw,value=latest,enable=${{ startsWith(github.ref, 'refs/tags/') }}
type=raw,value=latest,enable=true
type=ref,event=branch
type=sha,format=short
type=raw,value=${{ github.ref_name }},enable=${{ startsWith(github.ref, 'refs/tags/') }}
Expand Down
3 changes: 2 additions & 1 deletion lua/express/application.lua
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,8 @@ function APP_MT:listen(port, callback, host, sslparams)
copas.autoclose = false
copas.addserver(server_sock, copas.handler(function(client_sock)

local pg_req = PG_Request:new(port, client_sock)
local Handler = {log = require("pegasus.log")} -- https://github.com/EvandroLG/pegasus.lua/blob/c0e9b4d136b2a1a59a75ed8be26a544c8187d64c/src/pegasus/handler.lua#L121
local pg_req = PG_Request:new(port, client_sock, nil, Handler)
if not pg_req:method() then client_sock:close() return end

local writeHandler = {} -- crutch because of the pegasus.lua code (it should not be there)
Expand Down

0 comments on commit c1a32fb

Please sign in to comment.