Skip to content

Commit 6d4fb1f

Browse files
committed
Move tagged images publishing to develop
1 parent 67d8ccf commit 6d4fb1f

File tree

3 files changed

+14
-13
lines changed

3 files changed

+14
-13
lines changed

.github/workflows/PipelineProduction.yml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ on:
44
push:
55
branches:
66
- master
7-
tags:
8-
- '*'
97

108
jobs:
119
build-and-deploy:
@@ -33,17 +31,9 @@ jobs:
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 }}

.github/workflows/PipelineRC.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@ on:
44
push:
55
branches:
66
- develop
7+
tags:
8+
- '*'
79
pull_request:
810
branches:
911
- develop
10-
1112
jobs:
1213
# Job 1: Run Tests
1314
run-tests:
@@ -97,7 +98,15 @@ jobs:
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:

src/config/settings.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
ENABLE_SENTRY = env("ENABLE_SENTRY", default=False)
4646
HEALTH_CHECK_URL = env("HEALTH_CHECK_URL", default="api/v1/status/")
4747
SENTRY_TRACES_SAMPLE_RATE = env("SENTRY_TRACES_SAMPLE_RATE", default=0.1)
48+
SENTRY_PROFILES_SAMPLE_RATE = env("SENTRY_PROFILES_SAMPLE_RATE", default=0.1)
4849
SENTRY_ENVIRONMENT = env("SENTRY_ENVIRONMENT", default="")
4950
SENTRY_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

0 commit comments

Comments
 (0)