File tree Expand file tree Collapse file tree 3 files changed +14
-13
lines changed
Expand file tree Collapse file tree 3 files changed +14
-13
lines changed Original file line number Diff line number Diff line change 44 push :
55 branches :
66 - master
7- tags :
8- - ' *'
97
108jobs :
119 build-and-deploy :
3331 push : true
3432 tags : jandigarte/django:latest
3533 cache-from : type=registry,ref=jandigarte/django:latest
36-
37- - name : Build and push for tags
38- if : startsWith(github.ref, 'refs/tags/')
39- uses : docker/build-push-action@v4
40- with :
41- context : .
42- push : true
43- tags : jandigarte/django:${GITHUB_REF#refs/tags/}
4434
4535 - name : Configure AWS credentials
46- uses : aws-actions/configure-aws-credentials@v1
36+ uses : aws-actions/configure-aws-credentials@v4
4737 with :
4838 aws-access-key-id : ${{ vars.AWS_ACCESS_KEY_ID }}
4939 aws-secret-access-key : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
Original file line number Diff line number Diff line change 44 push :
55 branches :
66 - develop
7+ tags :
8+ - ' *'
79 pull_request :
810 branches :
911 - develop
10-
1112jobs :
1213 # Job 1: Run Tests
1314 run-tests :
9798 push : true
9899 tags : jandigarte/django:dev
99100 cache-from : type=registry,ref=jandigarte/django:dev
100-
101+
102+ - name : Build and push for tags
103+ if : startsWith(github.ref, 'refs/tags/')
104+ uses : docker/build-push-action@v4
105+ with :
106+ context : .
107+ push : true
108+ tags : jandigarte/django:${GITHUB_REF#refs/tags/}
109+
101110 - name : Configure AWS credentials
102111 uses : aws-actions/configure-aws-credentials@v4
103112 with :
Original file line number Diff line number Diff line change 4545ENABLE_SENTRY = env ("ENABLE_SENTRY" , default = False )
4646HEALTH_CHECK_URL = env ("HEALTH_CHECK_URL" , default = "api/v1/status/" )
4747SENTRY_TRACES_SAMPLE_RATE = env ("SENTRY_TRACES_SAMPLE_RATE" , default = 0.1 )
48+ SENTRY_PROFILES_SAMPLE_RATE = env ("SENTRY_PROFILES_SAMPLE_RATE" , default = 0.1 )
4849SENTRY_ENVIRONMENT = env ("SENTRY_ENVIRONMENT" , default = "" )
4950SENTRY_RELEASE = env ("SENTRY_RELEASE" , default = "1.5.0" )
5051
@@ -68,6 +69,7 @@ def traces_sampler(sampling_context):
6869 # django.contrib.auth) you may enable sending PII data.
6970 send_default_pii = True ,
7071 traces_sampler = traces_sampler ,
72+ profiles_sample_rate = SENTRY_PROFILES_SAMPLE_RATE ,
7173 release = SENTRY_RELEASE ,
7274 )
7375
You can’t perform that action at this time.
0 commit comments