Skip to content

Make different tf workspaces result in different values in nix#26

Open
foodelevator wants to merge 4 commits intomainfrom
multiple-deployment-environments
Open

Make different tf workspaces result in different values in nix#26
foodelevator wants to merge 4 commits intomainfrom
multiple-deployment-environments

Conversation

@foodelevator
Copy link
Member

@foodelevator foodelevator commented Nov 20, 2025

This is mostly finished, but the GitHub stuff is not. I'm not quite sure how we want to do that.

  • Either we can only set the organization-wide GitHub variables/secrets (NOMAD_ADDR and NOMAD_TOKEN) for the default workspace (the "main" cluster, on datasektionen.se), which would mostly limit the use of a second cluster to testing out changes in this repository.
  • Or we could have two sets of those variables, and alter the deployment action to e.g. deploy to the secondary cluster (on betasektionen.se) on push to main and to the main cluster on workflow dispatch or something like that.

Also, currently, you need to make sure to set the correct NOMAD_ADDR and NOMAD_TOKEN when switching tf workspaces so that you don't deploy nomad stuff to the wrong cluster. I think that could be solved by doing some tofu workspace show stuff in .envrc.

@foodelevator foodelevator marked this pull request as ready for review December 16, 2025 12:06
@foodelevator foodelevator self-assigned this Jan 19, 2026
@foodelevator foodelevator marked this pull request as draft January 19, 2026 13:28
@foodelevator
Copy link
Member Author

TODO(me): finish this

@foodelevator foodelevator force-pushed the multiple-deployment-environments branch from 78ab228 to c6c8a57 Compare February 28, 2026 22:09
@foodelevator foodelevator marked this pull request as ready for review February 28, 2026 22:26
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.

1 participant