Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass the staging/prod build tag through a Makefile env variable #1466

Merged
merged 1 commit into from
Nov 4, 2023

Conversation

jhrozek
Copy link
Contributor

@jhrozek jhrozek commented Nov 4, 2023

Adds a a Makefile variable that sets the staging or prod env tag. Currently the variable defaults to staging, we'll switch it to prod when ready.

Copy link
Contributor

@JAORMX JAORMX left a comment

Choose a reason for hiding this comment

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

why not keep the constants and instead make the default tag be staging?

@jhrozek
Copy link
Contributor Author

jhrozek commented Nov 4, 2023

why not keep the constants and instead make the default tag be staging?

good idea!

@JAORMX
Copy link
Contributor

JAORMX commented Nov 4, 2023

Let's change the description of this PR. Otherwise I like this. Binaries built from source using our makefile will point to staging, and releases will point to production.

Copy link
Member

@rdimitrov rdimitrov left a comment

Choose a reason for hiding this comment

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

Should we update goreleaser too to the prod tag?

Let's open a PR to do that, but before merging the PR, let's check with @evankanderson on prod status - I assume that the released binaries would be used already by people working on the docs this weekend and on Monday and I wouldn't like to interrupt their flow with binaries that point to env that can't be used.

@jhrozek jhrozek changed the title Revert back to staging temporarily Add a environment build tag that defaults to staging Nov 4, 2023
@jhrozek jhrozek changed the title Add a environment build tag that defaults to staging Pass the staging/prod build tag through a Makefile env variable Nov 4, 2023
@JAORMX
Copy link
Contributor

JAORMX commented Nov 4, 2023

Prod is up and running. This is good to go

@jhrozek jhrozek merged commit cf65bcd into stacklok:main Nov 4, 2023
12 checks passed
@evankanderson evankanderson mentioned this pull request Nov 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants