tvl-depot/ops
Florian Klink 774194652b feat(ops/terraform): add trigger to deploy-nixos, remove target_name
This allows passing in custom triggers to trigger a (re)deploy.

For example, a caller can put an AWS instance ID into the triggers to
cause a redeploy whenever the instance ID has changed.

The `target_name` terraform variable was doing something similar, but
`triggers` is more generic, allowing multiple triggers, without having
to stringify them.

We also don't need to trigger on the attrpath - it can be changed, and
as long as it still evaluates to the same
`data.external.nixos_system.result.drv` (which is checked on every
plan), no redeploy needs to be made.

Change-Id: I94ce787a50830b87b6f53c08e042e4abe4036bdd
Reviewed-on: https://cl.tvl.fyi/c/depot/+/8191
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
Autosubmit: flokli <flokli@flokli.de>
2023-03-03 14:53:43 +00:00
..
besadii fix(ops/besadii) test trigger.ref against configured branch 2022-06-09 15:26:25 +00:00
buildkite fix(ops/buildkite): set default_branch explicitly 2023-02-01 17:25:06 +00:00
deploy-whitby refactor(deploy-whitby): use nvd instead of nix-diff 2022-01-13 08:14:00 +00:00
dns chore(3p/sources): Bump channels & overlays 2022-09-28 08:02:31 +00:00
gerrit-tvl fix(gerrit-tvl): Use only one build filter 2022-05-28 13:39:58 +00:00
glesys feat(ops/glesys): set up DNS record for inbox.tvl.su 2022-12-25 10:27:29 +00:00
journaldriver chore(journaldriver): bump version number 2023-01-13 08:31:14 +00:00
keycloak docs: change email address mentions to depot@tvl.su 2022-12-27 19:46:11 +00:00
kontemplate style: format entire depot with nixpkgs-fmt 2022-01-31 16:11:53 +00:00
machines chore(whitby): enable zram swap 2023-02-11 12:14:35 +00:00
modules chore(ops/modules): add a GECOS for my user 2023-02-09 09:43:48 +00:00
mq_cli style(rust): Format all Rust code with rustfmt 2022-02-08 12:06:39 +00:00
pipelines feat(ops/pipelines): trigger tvix buildkite pipeline 2023-02-01 17:11:50 +00:00
posix_mq.rs style(rust): Format all Rust code with rustfmt 2022-02-08 12:06:39 +00:00
secrets feat(ops/secrets): add flokli to terraform secrets access 2023-02-01 16:39:32 +00:00
terraform feat(ops/terraform): add trigger to deploy-nixos, remove target_name 2023-03-03 14:53:43 +00:00
users feat(ops/users): add raitobezarius to users 2022-12-24 21:52:14 +00:00
nixos.nix fix(ops/nixos): use builtins.storePath to avoid dumping pkgs.path 2022-05-29 10:22:25 +00:00