Commit e4acc4e 1 parent efc7efd commit e4acc4e Copy full SHA for e4acc4e
File tree 3 files changed +8
-4
lines changed
3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -3,14 +3,15 @@ name: Backend Publish docker image
3
3
on :
4
4
release :
5
5
types : ['released']
6
+ push :
7
+ branch : " fix/debug"
6
8
7
9
env :
8
10
REGISTRY : ghcr.io
9
11
IMAGE_NAME : ${{ github.repository }}_backend
10
12
11
13
jobs :
12
14
build-and-push-image :
13
- if : (startswith(github.event.release.tag_name, 'v'))
14
15
15
16
runs-on : ubuntu-latest
16
17
41
42
context : .
42
43
file : " Dockerfile_backend"
43
44
push : true
44
- tags : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest, ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.event.release.tag_name }}
45
+ tags : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest, ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:fix-debug
45
46
labels : ${{ steps.meta.outputs.labels }}
Original file line number Diff line number Diff line change 1
1
package config
2
2
3
3
import (
4
+ "log"
4
5
"strings"
5
6
"time"
6
7
@@ -27,6 +28,7 @@ func New() *Config {
27
28
}
28
29
29
30
func init () {
31
+ log .Printf ("initializing config object" )
30
32
cfg := New ()
31
33
cfg .AutomaticEnv ()
32
34
DiggerConfig = cfg
Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ package main
2
2
3
3
import (
4
4
"fmt"
5
- "github.com/diggerhq/digger/backend/segment"
6
5
"github.com/diggerhq/digger/backend/config"
6
+ "github.com/diggerhq/digger/backend/segment"
7
7
"html/template"
8
8
"io/fs"
9
9
"log"
@@ -32,9 +32,10 @@ var templates embed.FS
32
32
func main () {
33
33
defer segment .CloseClient ()
34
34
initLogging ()
35
+ log .Printf ("fetching config object" )
35
36
cfg := config .DiggerConfig
36
37
web := controllers.WebController {Config : cfg }
37
-
38
+ log . Printf ( cfg . GetString ( "max_concurrency_per_batch" ))
38
39
if err := sentry .Init (sentry.ClientOptions {
39
40
Dsn : os .Getenv ("SENTRY_DSN" ),
40
41
EnableTracing : true ,
You can’t perform that action at this time.
0 commit comments