Skip to content
This repository has been archived by the owner on Sep 16, 2022. It is now read-only.

Add release submission to Sentry #402

Merged
merged 2 commits into from
Sep 6, 2019

Conversation

rptrchv
Copy link
Contributor

@rptrchv rptrchv commented Sep 5, 2019

We're gonna take the last commit hash from a CircleCI's evn (see https://circleci.com/docs/2.0/env-vars/#built-in-environment-variables).
Also I've added a special site url for raising 500 when we need it (for Sentry testing mostly).
Closes #398

Dockerfile Outdated
@@ -18,6 +18,7 @@ ENV CFSSL_SERVER wott-ca
# This is such that we can override it during build
ARG DJANGO_SETTINGS_MODULE=backend.settings.prod
ENV DJANGO_SETTINGS_MODULE ${DJANGO_SETTINGS_MODULE}
RUN echo ${CIRCLE_SHA1:-UNKNOWN} > /usr/src/release.txt
Copy link
Contributor

@vpetersson vpetersson Sep 5, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will not be available inside the docker build. You need to pass it on to Docker here.

@vpetersson
Copy link
Contributor

@rptrchv see Artem's comments in the ticket.

@rptrchv
Copy link
Contributor Author

rptrchv commented Sep 6, 2019

Guys, looks like I misunderstood the concept of docker's env vars, build parameters and their visibility scope. All my experiments with delivering proper value to the Dockerfile level fail.
@a-martynovich pls fix my code in this PR, this will help me find out what's I'm doing wrong. thank you

@vpetersson
Copy link
Contributor

@rptrchv you're 95% there. Just see this comment.

@a-martynovich
Copy link
Contributor

I'm on it.

@a-martynovich
Copy link
Contributor

Done.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add release submission to Sentry.
3 participants