Skip to content

Commit

Permalink
feat(release): support for proper sentry release propagation VI
Browse files Browse the repository at this point in the history
  • Loading branch information
thejoeejoee committed Nov 17, 2023
1 parent a4bfe5d commit 520a56a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,12 @@ jobs:
labels: ${{ steps.webMeta.outputs.labels }}
build-args: |
DJANGO_RELEASE_NAME: ${{ steps.meta.outputs.release_name }}
SENTRY_RELEASE_ENVIRONMENT: production
secrets: |
SENTRY_ORG=${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT=${{ secrets.SENTRY_PROJECT }}
SENTRY_WEBPACK_AUTH_TOKEN=${{ secrets.SENTRY_WEBPACK_AUTH_TOKEN }}
SENTRY_RELEASE_NAME=${{ steps.meta.outputs.release_name }}
SENTRY_RELEASE_ENVIRONMENT: production
- name: Prepare image metadata
id: proxyMeta
Expand Down Expand Up @@ -131,6 +131,7 @@ jobs:
SENTRY_PROJECT=${{ secrets.SENTRY_PROJECT }}
SENTRY_WEBPACK_AUTH_TOKEN=${{ secrets.SENTRY_WEBPACK_AUTH_TOKEN }}
SENTRY_RELEASE_NAME=${{ steps.meta.outputs.release_name }}
SENTRY_RELEASE_ENVIRONMENT: production
deploy:
name: Deploy to cluster
Expand Down
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# expected to be set during production release
ARG SENTRY_RELEASE_ENVIRONMENT
ARG DJANGO_RELASE_NAME

#
# webpack image
#
Expand Down Expand Up @@ -41,9 +37,13 @@ RUN \
--mount=type=secret,id=SENTRY_ORG \
--mount=type=secret,id=SENTRY_PROJECT \
--mount=type=secret,id=SENTRY_WEBPACK_AUTH_TOKEN \
--mount=type=secret,id=SENTRY_RELEASE_NAME \
--mount=type=secret,id=SENTRY_RELEASE_ENVIRONMENT \
export SENTRY_ORG=$(cat /run/secrets/SENTRY_ORG) \
export SENTRY_PROJECT=$(cat /run/secrets/SENTRY_PROJECT) \
export SENTRY_WEBPACK_AUTH_TOKEN=$(cat /run/secrets/SENTRY_WEBPACK_AUTH_TOKEN) \
export SENTRY_RELEASE_NAME=$(cat /run/secrets/SENTRY_RELEASE_NAME) \
export SENTRY_RELEASE_ENVIRONMENT=$(cat /run/secrets/SENTRY_RELEASE_ENVIRONMENT) \
&& yarn build

#
Expand Down

0 comments on commit 520a56a

Please sign in to comment.