Skip to content

Commit

Permalink
Add latest track to dcgm promote options
Browse files Browse the repository at this point in the history
  • Loading branch information
Deezzir committed Dec 3, 2024
1 parent fa0244f commit ca50d65
Show file tree
Hide file tree
Showing 8 changed files with 34 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ templates = {
source = "./templates/github/snap_promote.yaml.tftpl"
destination = ".github/workflows/promote.yaml"
vars = {
promote_options = "['latest/edge -> latest/candidate', 'latest/candidate -> latest/stable']"
promote_options = [
"latest/edge -> latest/candidate",
"latest/candidate -> latest/stable"
]
}
}
release = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ templates = {
source = "./templates/github/snap_promote.yaml.tftpl"
destination = ".github/workflows/promote.yaml"
vars = {
promote_options = "['latest/edge -> latest/candidate', 'latest/candidate -> latest/stable']"
promote_options = [
"latest/edge -> latest/candidate",
"latest/candidate -> latest/stable"
]
}
}
release = {
Expand Down
7 changes: 6 additions & 1 deletion terraform-plans/configs/dcgm-snap_main.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@ templates = {
source = "./templates/github/snap_promote.yaml.tftpl"
destination = ".github/workflows/promote.yaml"
vars = {
promote_options = "['core24/edge -> core24/candidate', 'core24/candidate -> core24/stable']"
promote_options = [
"core24/edge -> core24/candidate",
"core24/candidate -> core24/stable",
"latest/edge -> latest/candidate",
"latest/candidate -> latest/stable"
]
}
}
tics = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ templates = {
source = "./templates/github/snap_promote.yaml.tftpl"
destination = ".github/workflows/promote.yaml"
vars = {
promote_options = "['latest/edge -> latest/candidate', 'latest/candidate -> latest/stable']"
promote_options = [
"latest/edge -> latest/candidate",
"latest/candidate -> latest/stable"
]
}
}
release = {
Expand Down
5 changes: 4 additions & 1 deletion terraform-plans/configs/prometheus-juju-exporter_main.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ templates = {
source = "./templates/github/snap_promote.yaml.tftpl"
destination = ".github/workflows/promote.yaml"
vars = {
promote_options = "['latest/edge -> latest/candidate', 'latest/candidate -> latest/stable']"
promote_options = [
"latest/edge -> latest/candidate",
"latest/candidate -> latest/stable"
]
}
}
release = {
Expand Down
5 changes: 4 additions & 1 deletion terraform-plans/configs/smartctl-exporter-snap_main.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ templates = {
source = "./templates/github/snap_promote.yaml.tftpl"
destination = ".github/workflows/promote.yaml"
vars = {
promote_options = "['latest/edge -> latest/candidate', 'latest/candidate -> latest/stable']"
promote_options = [
"latest/edge -> latest/candidate",
"latest/candidate -> latest/stable"
]
}
}
tics = {
Expand Down
5 changes: 4 additions & 1 deletion terraform-plans/configs/tailscale-snap_main.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ templates = {
source = "./templates/github/snap_promote.yaml.tftpl"
destination = ".github/workflows/promote.yaml"
vars = {
promote_options = "['latest/edge -> latest/candidate', 'latest/candidate -> latest/stable']"
promote_options = [
"latest/edge -> latest/candidate",
"latest/candidate -> latest/stable"
]
}
}
release = {
Expand Down
5 changes: 4 additions & 1 deletion terraform-plans/templates/github/snap_promote.yaml.tftpl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ on:
description: 'Channel Promotion, e.g. latest/edge -> latest/candidate'
required: true
type: choice
options: ${promote_options}
options:
{{- range .promote_options }}
- {{ . }}
{{- end }}

jobs:
promote-snap:
Expand Down

0 comments on commit ca50d65

Please sign in to comment.