Skip to content

Conversation

@nbgoodall
Copy link
Contributor

Hey,

When deploying with tagged servers, e.g.:

servers:
  job:
    hosts:
      - 10.100.0.4: job
    proxy: false
    cmd: bin/jobs

...the deploy would fail at the end with undefined method 'env' for nil if env.tags.job wasn't set.

This PR fixes that by compacting the env_tags in lib/kamal/configuration/role.rb, along with a little test.

@nbgoodall nbgoodall changed the title Make environment tags for hosts optional Make environment variable tags for hosts optional Nov 20, 2025
@nbgoodall nbgoodall changed the title Make environment variable tags for hosts optional Make environment variables optional for tagged hosts Nov 20, 2025
@djmb djmb merged commit 75de40c into basecamp:main Nov 26, 2025
7 checks passed
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.

2 participants