# Curious how others handle deployments

**URL:** <https://discuss.hashicorp.com/t/curious-how-others-handle-deployments/77843>\
**Category:** Nomad\
**Created:** [October 14, 2026, 10:46am UTC](https://discuss.hashicorp.com/t/curious-how-others-handle-deployments/77843 "2026-10-14T10:46:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![afreidah](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/afreidah/32/47780_2.png) [@afreidah](https://discuss.hashicorp.com/u/afreidah)\
**Post date:** [October 14, 2026, 10:46am UTC](https://discuss.hashicorp.com/t/curious-how-others-handle-deployments/77843/1 "2026-10-14T10:46:49Z")

</div>

I’ve been meaning to ask this..I don’t handle job deployments at work, my work is way lower level than that, but for my homelab nomad/consul/vault cluster I am managing all the jobs. How are professional teams deploying jobs to nomad? Just some gitops job that runs the nomad hcl job? Terraform? Is there a sort of accepted way teams do this?

I built my own deployment system around a custom temporal-based on-demand github/forgejo actions runner…it is a bit hacky but it works:

merge to main in github triggers a repo sync app a friend built (I was already using it to keep repos in sync) that syncs the repo to the forgejo running inside my cluster. sync to main in forgejo triggers forgejo actions (forgejo actions are only for things that make changes to my cluster so I want to keep everything internal. self-hosted gh actions runners take jobs that only need read access, and real gh actions is only for shit like  
lint/vet/vuln static analysis so I don’t waste my own compute on stuff that needs no knowledge of my cluster). orgejo worker does a diff on the repo and deploys changed jobs.

It works and it was sort of fun to build. A temporal job polls my repos every 30 seconds for pending actions jobs. Since non-org gh tokens only work for one repo, it mints a token per job and dispatches a nomad parameterized batch job that claims the job, runs it, and  
exits. No idle runners eating my limited resources…but I know that isn’t how most are doing it.

[shitty write-up about it if anyone’s curious](https://alexfreidah.com/posts/on-demand-ci-runners-on-nomad/)

The next thing I have to work on is the dead space in automation after I update an application I am writing: a PR merges to main, that triggers a sync, forgejo builds the docker image and pushes it to my registry, and the version number has increased…if I update the  
version number in my nomad jobs repo to match the new image and merge THAT pr, the new nomad job gets deployed…but how are people getting from “I added a new feature in app\_xyz and CI just pushed the new image to the registry” to “the new version of that nomad job is now running in the cluster and I didn’t have to manually change the version number of the image in the nomad job or use :latest as a weak workaround”? Do people store job version numbers in consul k/v or nomad variables, have gitops update that value on a new image push, and then have the job redeploy off the update, either via a watcher or consul-template?

---

<div class="post-metadata">

**Author:** ![afreidah](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/afreidah/32/47780_2.png) [@afreidah](https://discuss.hashicorp.com/u/afreidah)\
**Post date:** [October 16, 2026, 11:15am UTC](https://discuss.hashicorp.com/t/curious-how-others-handle-deployments/77843/2 "2026-10-16T11:15:19Z")

</div>

sorry, that was long winded.

tl;dr how do you guys handle triggering nomad to deploy a newer version of a container after you publish changes to an application you built and it’s updated docker image makes it to the registry? Consul k/v or Nomad variables holding the version number and it gets bumped on image deploy and consul-template to pickup the change? something else?

---

<div class="post-metadata">

**Author:** ![Mrlaura](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/mrlaura/32/47885_2.png) [@Mrlaura](https://discuss.hashicorp.com/u/Mrlaura)\
**Post date:** [November 3, 2026, 4:19pm UTC](https://discuss.hashicorp.com/t/curious-how-others-handle-deployments/77843/3 "2026-11-03T16:19:53Z")

</div>

I think you’re actually pretty close to having the whole thing automated already.

Instead of adding another watcher for Consul KV or Nomad variables, I’d probably let the image build pipeline update the Nomad jobs repo directly.

Once the new Docker image is pushed, the pipeline could open a PR that changes the image reference in the job file to the new tag or, even better, its immutable digest. Then your existing Forgejo workflow takes over when that PR gets merged.

For a homelab, you could even auto-merge those PRs after the relevant checks pass, while keeping manual approval for anything more sensitive.

What I like about this approach is that Git remains the source of truth. You can see exactly which image was deployed, when it changed, and roll back by reverting the commit.

I feel like introducing Consul KV just to track image versions might add another moving part you don’t really need.

Or am I missing a reason why the application repo and the Nomad jobs repo can’t communicate through a small automated PR?

---

<div class="post-metadata">

**Author:** ![afreidah](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/afreidah/32/47780_2.png) [@afreidah](https://discuss.hashicorp.com/u/afreidah)\
**Post date:** [November 4, 2026, 7:01am UTC](https://discuss.hashicorp.com/t/curious-how-others-handle-deployments/77843/4 "2026-11-04T07:01:09Z")

</div>

I didn’t want to bring more PRs into this…what I ended up doing for now is that when I merge my software on github one of the post-merge jobs is a gh self-hosted runners job that publishes the new version to consul and then forgejo actions that was synced to inside my cluster checks out the repo with the nomad job and issues the deploy command passing in the version it wrote to consul into the job as a VAR.

Works well enough for now haha. I had considered the second PR thing but I felt like that was just something I’d have to wait for and monitor instead of just letting it roll out or it has to auto-merge which I feel like is a bunch of extra moving parts if I’m not even going to review the PR anyways. So now consul is more of just a bookkeeping step of what var was passed in on the last deploy attempt on the nomad job but the nomad job doesn’t read it, CI passes it the value as a VAR which is pretty similar to the approach you are suggesting anyways.

Will report back what issues this causes for me haha, but been working well enough for like a week now.

Thanks, I really appreciate the thoughtful response!
